diff options
author | Azat Bahawi <azat@bahawi.net> | 2022-08-15 20:15:46 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2022-08-15 20:15:46 +0300 |
commit | 11b1422236004d1414b895f2b993ec6b651a5d19 (patch) | |
tree | 399881ae9fa29bec0b6daf2c2653f763d8612cf5 /modules/nixfiles/podman.nix | |
parent | 2022-08-14 (diff) |
2022-08-15
Diffstat (limited to 'modules/nixfiles/podman.nix')
-rw-r--r-- | modules/nixfiles/podman.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/nixfiles/podman.nix b/modules/nixfiles/podman.nix index 6c8b7e5..ee9d4cb 100644 --- a/modules/nixfiles/podman.nix +++ b/modules/nixfiles/podman.nix @@ -12,10 +12,18 @@ in { mkEnableOption "Whether to enable Podman."; config = mkIf cfg.enable { + assertions = [ + { + assertion = !config.nixfiles.modules.docker.enable; + message = "Pick only one!"; + } + ]; + secrets.containers-auth = { file = "${inputs.self}/secrets/containers-auth"; path = "${config.dirs.config}/containers/auth.json"; owner = my.username; + inherit (config.my) group; }; virtualisation.podman.enable = true; @@ -26,7 +34,6 @@ in { hm.programs.bash = { shellAliases.p = "${pkgs.podman}/bin/podman"; - initExtra = mkAfter '' _complete_alias p __start_podman podman ''; |