diff --git a/flake.nix b/flake.nix index e52bf39..6dfb00e 100644 --- a/flake.nix +++ b/flake.nix @@ -80,7 +80,7 @@ ]; }; - th-vrt-ctr01 = nixpkgs.lib.nixosSystem { + v-th-ctr01 = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { inherit inputs; }; modules = [ diff --git a/hosts/th-vrt-ctr01/default.nix b/hosts/v-th-ctr01/default.nix similarity index 94% rename from hosts/th-vrt-ctr01/default.nix rename to hosts/v-th-ctr01/default.nix index 3cdf7d3..7920a36 100644 --- a/hosts/th-vrt-ctr01/default.nix +++ b/hosts/v-th-ctr01/default.nix @@ -22,6 +22,7 @@ }; services = { docker.enable = false; + podman.enable = true; quickemu.enable = false; sunshine.enable = false; garbage-collection.enable = true; @@ -50,7 +51,7 @@ ]; }; - networking.hostName = "th-vrt-ctr01"; # Define your hostname. + networking.hostName = "v-th-ctr-01"; # Define your hostname. networking.firewall = { enable = true; diff --git a/hosts/th-vrt-ctr01/home.nix b/hosts/v-th-ctr01/home.nix similarity index 100% rename from hosts/th-vrt-ctr01/home.nix rename to hosts/v-th-ctr01/home.nix diff --git a/modules/system/default.nix b/modules/system/default.nix index 21df282..239da18 100644 --- a/modules/system/default.nix +++ b/modules/system/default.nix @@ -7,6 +7,7 @@ ./applications/thunar.nix ./services/docker.nix + ./services/podman.nix ./services/quickemu.nix ./services/sunshine.nix ./services/garbage-collection.nix diff --git a/modules/system/services/podman.nix b/modules/system/services/podman.nix new file mode 100644 index 0000000..0aa4692 --- /dev/null +++ b/modules/system/services/podman.nix @@ -0,0 +1,24 @@ +{ lib, config, ... }: + +with lib; + +let + cfg = config.settings.services.podman; +in { + options = { + settings.services.podman.enable = lib.mkOption { + type = lib.types.bool; + default = false; + description = '' + Enable podman configuration + ''; + }; + }; + + config = mkIf cfg.enable { + virtualisation.containers.enable = true; + virtualisation.podman = { + enable = true; + }; + }; +}