From f70f0723f46f3df0c1f72f4bb02ad0ff870c402e Mon Sep 17 00:00:00 2001 From: RGBCube Date: Mon, 27 May 2024 14:33:43 +0300 Subject: [PATCH] Add systemd aliases --- modules/systemd.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 modules/systemd.nix diff --git a/modules/systemd.nix b/modules/systemd.nix new file mode 100644 index 0000000..760b8a6 --- /dev/null +++ b/modules/systemd.nix @@ -0,0 +1,21 @@ +{ lib, ... }: with lib; + +systemConfiguration { + environment.shellAliases = { + sc = "systemctl"; + scd = "systemctl stop"; + scr = "systemctl restart"; + scu = "systemctl start"; + suc = "systemctl --user"; + sucd = "systemctl --user stop"; + sucr = "systemctl --user restart"; + sucu = "systemctl --user start"; + + jc = "journalctl"; + jcf = "journalctl --follow --unit"; + jcr = "journalctl --reverse --unit"; + juc = "journalctl --user"; + jucf = "journalctl --user --follow --unit"; + jucr = "journalctl --user --reverse --unit"; + }; +}