Added podman aliases

This commit is contained in:
Timo Boomers 2025-05-09 13:02:38 +02:00
parent 6d3dea12ff
commit 87b73dc10e
Signed by: xeovalyte
SSH Key Fingerprint: SHA256:GWI1hq+MNKR2UOcvk7n9tekASXT8vyazK7vDF9Xyciw

View File

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