From 0db64447e4378492571c210bab13303511e56268 Mon Sep 17 00:00:00 2001 From: Geir Okkenhaug Jerstad Date: Fri, 2 Aug 2024 18:52:48 +0200 Subject: [PATCH] podman & incus on laptop --- laptop/configuration.nix | 3 ++- laptop/incus.nix | 6 +++++- laptop/podman.nix | 13 +++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 laptop/podman.nix diff --git a/laptop/configuration.nix b/laptop/configuration.nix index d8f929b..f5e8954 100644 --- a/laptop/configuration.nix +++ b/laptop/configuration.nix @@ -13,7 +13,8 @@ ./fonts.nix ./k8s.nix ./tail.nix - ./pmb.nix + ./podman.nix + ./incus.nix ]; # Bootloader. diff --git a/laptop/incus.nix b/laptop/incus.nix index 5eaaa6d..a95e662 100644 --- a/laptop/incus.nix +++ b/laptop/incus.nix @@ -1,9 +1,13 @@ { config, pkgs, ... }: { - virtualisation.incus.enable = true; + virtualisation.incus = { + enable = true; + ui.enable = true; + }; environment.systemPackages = with pkgs; [ incus lxc ]; + networking.firewall.allowedTCPPorts = [ 8443 ]; } diff --git a/laptop/podman.nix b/laptop/podman.nix new file mode 100644 index 0000000..44f2f43 --- /dev/null +++ b/laptop/podman.nix @@ -0,0 +1,13 @@ +{ config, pkgs, ... }: +{ + virtualisation.podman.enable = true; + virtualisation.podman.dockerCompat = true; + virtualisation.podman.dockerSocket.enable = true; + + #virtualisation.defaultNetwork.settings.dns_enabled = true; + environment.systemPackages = with pkgs; [ + podman-tui + podman-compose + ]; + + }