From 6e56327cfcc720849516ed50e4ed522e2671087c Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Thu, 26 Sep 2024 20:09:05 +0300 Subject: [PATCH] feat(hosts/alice): enable podman --- hosts/alice/default.nix | 2 ++ roles/default.nix | 1 + roles/podman.nix | 17 +++++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 roles/podman.nix diff --git a/hosts/alice/default.nix b/hosts/alice/default.nix index 69323e0..eb686e0 100644 --- a/hosts/alice/default.nix +++ b/hosts/alice/default.nix @@ -59,6 +59,8 @@ roles.zellij.enable = true; roles.kitty.enable = true; + roles.podman.enable = true; + roles.graphics = { enable = true; nvidia.enable = true; diff --git a/roles/default.nix b/roles/default.nix index c05a391..173d783 100644 --- a/roles/default.nix +++ b/roles/default.nix @@ -15,6 +15,7 @@ ./nix.nix ./obs.nix ./plasma.nix + ./podman.nix ./prometheus.nix ./qutebrowser.nix ./tailscale.nix diff --git a/roles/podman.nix b/roles/podman.nix new file mode 100644 index 0000000..48e9b84 --- /dev/null +++ b/roles/podman.nix @@ -0,0 +1,17 @@ +{ + config, + lib, + ... +}: let + cfg = config.roles.podman; +in { + options.roles.podman = { + enable = lib.mkEnableOption "Podman"; + }; + + config = lib.mkIf cfg.enable { + virtualisation.podman = { + enable = true; + }; + }; +} -- 2.44.1