diff --git a/modules/home/services/podman.nix b/modules/home/services/podman.nix index c073d04..413d171 100644 --- a/modules/home/services/podman.nix +++ b/modules/home/services/podman.nix @@ -13,11 +13,30 @@ in { 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 { services.podman = { 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"; + }; }; }