diff options
| author | seth <[email protected]> | 2023-07-15 05:19:56 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-07-15 05:46:58 -0400 |
| commit | 75e14e155a639e254c52056e478651fde78202db (patch) | |
| tree | 0deb9a5a9fd51fab7c879d77b663c1f93904218d /modules/nixos/features/virtualisation.nix | |
| parent | 1f693a4ae1e59a1ee6649acaabba7508da78bad2 (diff) | |
modules/virtualisation: move to features set
Diffstat (limited to 'modules/nixos/features/virtualisation.nix')
| -rw-r--r-- | modules/nixos/features/virtualisation.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/nixos/features/virtualisation.nix b/modules/nixos/features/virtualisation.nix new file mode 100644 index 0000000..db17c8b --- /dev/null +++ b/modules/nixos/features/virtualisation.nix @@ -0,0 +1,21 @@ +{ + config, + lib, + pkgs, + ... +}: let + cfg = config.getchoo.features.virtualisation; + inherit (lib) mkEnableOption mkIf; +in { + options.getchoo.features.virtualisation.enable = mkEnableOption "enable podman"; + + config.virtualisation = mkIf cfg.enable { + podman = { + enable = true; + enableNvidia = true; + extraPackages = with pkgs; [podman-compose]; + autoPrune.enable = true; + }; + oci-containers.backend = "podman"; + }; +} |
