From 5e0e078479a4e0abf848d760ec7adf187d54bbac Mon Sep 17 00:00:00 2001 From: Tyler Starr Date: Mon, 9 Oct 2023 19:52:55 -0700 Subject: [PATCH] Switch to rootless docker --- provision/hosts/kestrel/configuration.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/provision/hosts/kestrel/configuration.nix b/provision/hosts/kestrel/configuration.nix index a0f0070a..15d37463 100644 --- a/provision/hosts/kestrel/configuration.nix +++ b/provision/hosts/kestrel/configuration.nix @@ -48,9 +48,11 @@ nerdfonts ]; - # Enable virtualisation - virtualisation.docker.enable = true; - virtualisation.docker.storageDriver = "btrfs"; + # Enable docker + virtualisation.docker.rootless = { + enable = true; + setSocketVariable = true; + }; # Define user account. users.users.${user} = {