diff --git a/nixos/linux.nix b/nixos/linux.nix index 2d8794c..4031cf1 100644 --- a/nixos/linux.nix +++ b/nixos/linux.nix @@ -53,8 +53,18 @@ in { pkgs.util-linux pkgs.iotop pkgs.rust-bin.stable.latest.default + + # For docker-compose like setups + pkgs.arion ]; + # Arion works with Docker, but for NixOS-based containers, you need Podman + # since NixOS 21.05. + virtualisation.docker.enable = false; + virtualisation.podman.enable = true; + virtualisation.podman.dockerSocket.enable = true; + virtualisation.podman.defaultNetwork.dnsname.enable = true; + swapDevices = [ { device = "/swapfile"; diff --git a/nixos/system/users.nix b/nixos/system/users.nix index 10f47d1..c0fd866 100644 --- a/nixos/system/users.nix +++ b/nixos/system/users.nix @@ -38,7 +38,7 @@ isNormalUser = false; username = "root"; home = "/root"; - extraGroups = []; + extraGroups = ["podman"]; authorizedKeys = authorizedKeys; homeConfig = import ./home/root.nix { username = "root"; @@ -52,6 +52,7 @@ extraGroups = [ "wheel" "docker" + "podman" ]; authorizedKeys = authorizedKeys; homeConfig = import ./home/ironmagma.nix {