summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-25 05:49:28 -0700
committerFuwn <[email protected]>2024-09-25 05:49:28 -0700
commit1c3c38acdfb04e151bc9c5294e091167908435b2 (patch)
tree86622b7195ede15c781357cf226844bccbd3a20d
parentmodules: move networking hostname to hosts (diff)
downloadnixos-config-1c3c38acdfb04e151bc9c5294e091167908435b2.tar.xz
nixos-config-1c3c38acdfb04e151bc9c5294e091167908435b2.zip
virtualisation: enable podman
-rw-r--r--modules/desktop/virtualisation/default.nix1
-rw-r--r--modules/desktop/virtualisation/podman.nix13
2 files changed, 14 insertions, 0 deletions
diff --git a/modules/desktop/virtualisation/default.nix b/modules/desktop/virtualisation/default.nix
index 97aa4b9..e776395 100644
--- a/modules/desktop/virtualisation/default.nix
+++ b/modules/desktop/virtualisation/default.nix
@@ -2,6 +2,7 @@
imports = [
./docker.nix
./libvirtd.nix
+ ./podman.nix
./qemu.nix
];
diff --git a/modules/desktop/virtualisation/podman.nix b/modules/desktop/virtualisation/podman.nix
new file mode 100644
index 0000000..7e8994c
--- /dev/null
+++ b/modules/desktop/virtualisation/podman.nix
@@ -0,0 +1,13 @@
+{ lib, ... }:
+{
+ virtualisation.podman = {
+ enable = true;
+ enableNvidia = lib.mkForce true;
+ defaultNetwork.settings.dns_enabled = true;
+
+ autoPrune = {
+ enable = true;
+ dates = "daily";
+ };
+ };
+}