From 83da288a5fc13c0da24cfce68c5d480c04c98566 Mon Sep 17 00:00:00 2001 From: Philip Peterson <1326208+philip-peterson@users.noreply.github.com> Date: Fri, 6 Dec 2024 22:44:07 -0900 Subject: [PATCH] Try to add arion --- nixos/linux.nix | 10 ++++++++++ nixos/system/users.nix | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) 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 {