mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Add systemd aliases
This commit is contained in:
parent
4a0d8c4254
commit
f70f0723f4
1 changed files with 21 additions and 0 deletions
21
modules/systemd.nix
Normal file
21
modules/systemd.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue