1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 11:37:44 +00:00

Add systemd aliases

This commit is contained in:
RGBCube 2024-05-27 14:33:43 +03:00
parent 4a0d8c4254
commit f70f0723f4
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

21
modules/systemd.nix Normal file
View file

@ -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";
};
}