From 87b73dc10ebf2cb788205a7ac0e30559ff093730 Mon Sep 17 00:00:00 2001 From: Timo Boomers Date: Fri, 9 May 2025 13:02:38 +0200 Subject: [PATCH] Added podman aliases --- modules/home/services/podman.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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"; + }; }; }