From 4cd603416d71b40a1cf7028809047c95a2889464 Mon Sep 17 00:00:00 2001 From: Leyla Becker Date: Mon, 26 Aug 2024 23:57:46 -0500 Subject: [PATCH] added docker to leyla and horizon --- hosts/horizon/configuration.nix | 9 ++++++++- users/leyla/default.nix | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/hosts/horizon/configuration.nix b/hosts/horizon/configuration.nix index ecb5b47..26768f8 100644 --- a/hosts/horizon/configuration.nix +++ b/hosts/horizon/configuration.nix @@ -29,7 +29,14 @@ networking.hostName = "horizon"; # Define your hostname. # enabled virtualisation for docker - # virtualisation.docker.enable = true; + virtualisation.docker = { + enable = true; + rootless = { + enable = true; + setSocketVariable = true; + }; + }; + # Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true; diff --git a/users/leyla/default.nix b/users/leyla/default.nix index 2f798be..41daeb2 100644 --- a/users/leyla/default.nix +++ b/users/leyla/default.nix @@ -35,7 +35,7 @@ in ( if cfg.isNormalUser then { isNormalUser = true; - extraGroups = [ "networkmanager" "wheel" "adbusers" ]; + extraGroups = [ "networkmanager" "wheel" "adbusers" "docker" ]; hashedPasswordFile = config.sops.secrets."passwords/leyla".path; } else {