diff --git a/nix/nixos-modules/default.nix b/nix/nixos-modules/default.nix index e3789c7..c253018 100644 --- a/nix/nixos-modules/default.nix +++ b/nix/nixos-modules/default.nix @@ -3,6 +3,7 @@ imports = [ # directories + ./extends ./frontend ./improvedDefaults # files diff --git a/nix/nixos-modules/extends/default.nix b/nix/nixos-modules/extends/default.nix new file mode 100644 index 0000000..b8c77b1 --- /dev/null +++ b/nix/nixos-modules/extends/default.nix @@ -0,0 +1,6 @@ +{ + imports = [ + # files + ./podman.nix + ]; +} diff --git a/nix/nixos-modules/extends/podman.nix b/nix/nixos-modules/extends/podman.nix new file mode 100644 index 0000000..4910175 --- /dev/null +++ b/nix/nixos-modules/extends/podman.nix @@ -0,0 +1,17 @@ +{ + config, + lib, + pkgs, + ... +}: +let + cfg = config.services.podman; +in +{ + options.virtualisation.podman = { + compose.enable = lib.mkEnableOption "podman-compose"; + }; + config.environment.systemPackages = lib.mkIf (cfg.enable && cfg.compose.enable) [ + pkgs.podman-compose + ]; +}