Added podman aliases
This commit is contained in:
parent
6d3dea12ff
commit
87b73dc10e
@ -13,11 +13,30 @@ in {
|
|||||||
Enable podman configuration
|
Enable podman configuration
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
settings.services.podman.systemctlAliases = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = true;
|
||||||
|
description = ''
|
||||||
|
Enable podman systemctl aliases configuration
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services.podman = {
|
services.podman = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.shellAliases = lib.mkIf cfg.systemctlAliases {
|
||||||
|
scu = "systemctl --user";
|
||||||
|
scus = "systemctl --user start";
|
||||||
|
scur = "systemctl --user restart";
|
||||||
|
scust = "systemctl --user stop";
|
||||||
|
scusts = "systemctl --user status";
|
||||||
|
|
||||||
|
jcu = "journalctl --user";
|
||||||
|
jcur = "journalctl --user -xe";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user