From 1c396fef1cb4f29e5dea713ad3fa71cc45d67172 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Thu, 28 Mar 2024 16:26:01 +0100 Subject: [PATCH] [packages] add podman --- nix/systems/default.nix | 2 +- nix/systems/packages.nix | 3 +++ nix/systems/virt-manager.nix | 7 ------- nix/systems/virtualisation.nix | 21 +++++++++++++++++++++ 4 files changed, 25 insertions(+), 8 deletions(-) delete mode 100644 nix/systems/virt-manager.nix create mode 100644 nix/systems/virtualisation.nix diff --git a/nix/systems/default.nix b/nix/systems/default.nix index fc103b9..ede4f10 100644 --- a/nix/systems/default.nix +++ b/nix/systems/default.nix @@ -12,7 +12,7 @@ ./security.nix ./simon.nix ./sound.nix - ./virt-manager.nix + ./virtualisation.nix ]; # system state version diff --git a/nix/systems/packages.nix b/nix/systems/packages.nix index be37992..e2f6f87 100644 --- a/nix/systems/packages.nix +++ b/nix/systems/packages.nix @@ -51,8 +51,11 @@ bat unstable.clipse cmatrix + distrobox git screen + podman + podman-compose vim wget diff --git a/nix/systems/virt-manager.nix b/nix/systems/virt-manager.nix deleted file mode 100644 index 0e53922..0000000 --- a/nix/systems/virt-manager.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, ... }: { - - # setup virt-manager - virtualisation.libvirtd.enable = true; - programs.virt-manager.enable = true; - -} diff --git a/nix/systems/virtualisation.nix b/nix/systems/virtualisation.nix new file mode 100644 index 0000000..20cc2c6 --- /dev/null +++ b/nix/systems/virtualisation.nix @@ -0,0 +1,21 @@ +{ config, pkgs, ... }: { + + # setup virt-manager + programs.virt-manager.enable = true; + + # virtualistation + virtualisation = { + + # libvirtd + libvirtd = { + enable = true; + }; + + # podman + podman = { + enable = true; + dockerCompat = true; + defaultNetwork.settings.dns_enabled = true; + }; + }; +}