From 4971dec157ef4156c5a9a92ffb7ef01e19eb43ce Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Sat, 20 Jul 2024 03:57:29 +0000 Subject: [PATCH] Switch quite to podman from docker. I'm more used to it, and I find docker's history to be questionable --- quinn/etc/nixos/configuration.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/quinn/etc/nixos/configuration.nix b/quinn/etc/nixos/configuration.nix index fdd78eb..408e2ea 100644 --- a/quinn/etc/nixos/configuration.nix +++ b/quinn/etc/nixos/configuration.nix @@ -62,7 +62,7 @@ users.users.eliribble = { isNormalUser = true; description = "Eli Ribble"; - extraGroups = [ "docker" "networkmanager" "wheel" ]; # Enable ‘sudo’ for the user. + extraGroups = [ "docker" "networkmanager" "podman" "wheel" ]; # Enable ‘sudo’ for the user. # packages = with pkgs; [ # firefox # tree @@ -83,6 +83,8 @@ #unifi8 wget ]; + + networking.hostName = "quinn"; # Allow specific unfree packages nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ @@ -144,7 +146,10 @@ # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . system.stateVersion = "24.05"; # Did you read the comment? - # Enable docker - virtualisation.docker.enable = true; + # Enable podman since we are on NixOS 21.05 + virtualisation.docker.enable = false; + virtualisation.podman.enable = true; + virtualisation.podman.dockerSocket.enable = true; + virtualisation.podman.defaultNetwork.settings.dns_enabled = true; }