From 16a0d6d6be531a438ef682d6d1ca19c8c00c2b38 Mon Sep 17 00:00:00 2001 From: Lukas Date: Tue, 1 Jul 2025 23:29:55 +0200 Subject: [PATCH] added docker --- home/lukas/default.nix | 2 -- hosts/segfault-machine/configuration.nix | 1 + modules/system/docker.nix | 6 ++++++ users/lukas.nix | 5 +---- 4 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 modules/system/docker.nix diff --git a/home/lukas/default.nix b/home/lukas/default.nix index 0fb26b1..ff40e9f 100644 --- a/home/lukas/default.nix +++ b/home/lukas/default.nix @@ -1,5 +1,3 @@ -{ config, pkgs, ... }: - { imports = [ ./brave.nix diff --git a/hosts/segfault-machine/configuration.nix b/hosts/segfault-machine/configuration.nix index a57143c..ad64e74 100644 --- a/hosts/segfault-machine/configuration.nix +++ b/hosts/segfault-machine/configuration.nix @@ -8,6 +8,7 @@ ../../modules/system/locale.nix ../../modules/system/audio.nix ../../modules/system/printing.nix + ../../modules/system/docker.nix ]; networking.hostName = "segfault-machine"; diff --git a/modules/system/docker.nix b/modules/system/docker.nix new file mode 100644 index 0000000..b26d2b7 --- /dev/null +++ b/modules/system/docker.nix @@ -0,0 +1,6 @@ +{ + virtualisation.docker = { + enable = true; + rootless = true; + }; +} diff --git a/users/lukas.nix b/users/lukas.nix index c63ff70..4966272 100644 --- a/users/lukas.nix +++ b/users/lukas.nix @@ -1,14 +1,11 @@ -{ config, pkgs, ... }: - { users.users.lukas = { isNormalUser = true; description = "lukas"; - extraGroups = [ "networkmanager" "wheel" ]; + extraGroups = [ "networkmanager" "wheel" "docker"]; }; # Autologin services.displayManager.autoLogin.enable = true; services.displayManager.autoLogin.user = "lukas"; } -