From e63cd1fa16899d2b1fa1680410737f628ea2577b Mon Sep 17 00:00:00 2001 From: joy Date: Mon, 16 Sep 2024 20:17:59 +0200 Subject: [PATCH] vm docker --- modules/apps/gui/default.nix | 1 - modules/services/default.nix | 5 +++-- modules/services/{virt => docker}/default.nix | 2 +- modules/{apps/gui => services}/vm/default.nix | 0 modules/system/user/default.nix | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename modules/services/{virt => docker}/default.nix (69%) rename modules/{apps/gui => services}/vm/default.nix (100%) diff --git a/modules/apps/gui/default.nix b/modules/apps/gui/default.nix index 37e6743..05a549f 100644 --- a/modules/apps/gui/default.nix +++ b/modules/apps/gui/default.nix @@ -6,7 +6,6 @@ ./games ./nemo ./rofi - ./vm ./misc ]; } diff --git a/modules/services/default.nix b/modules/services/default.nix index f1f8eb7..da8d987 100644 --- a/modules/services/default.nix +++ b/modules/services/default.nix @@ -1,10 +1,11 @@ { imports = [ - ./dunst + ./vm ./gdm + ./dunst ./polkit ./syncthing - ./virt + ./docker ./misc ]; } diff --git a/modules/services/virt/default.nix b/modules/services/docker/default.nix similarity index 69% rename from modules/services/virt/default.nix rename to modules/services/docker/default.nix index d267f72..6cc1210 100644 --- a/modules/services/virt/default.nix +++ b/modules/services/docker/default.nix @@ -1,5 +1,5 @@ {...}: { virtualisation.docker.rootless.enable = true; virtualisation.docker.enable = true; - virtualisation.waydroid.enable = true; + users.users.joy.extraGroups = ["docker"]; } diff --git a/modules/apps/gui/vm/default.nix b/modules/services/vm/default.nix similarity index 100% rename from modules/apps/gui/vm/default.nix rename to modules/services/vm/default.nix diff --git a/modules/system/user/default.nix b/modules/system/user/default.nix index a5942e5..2952e06 100644 --- a/modules/system/user/default.nix +++ b/modules/system/user/default.nix @@ -2,6 +2,6 @@ users.users.joy = { isNormalUser = true; description = "joy"; - extraGroups = ["wheel" "docker"]; + extraGroups = ["wheel"]; }; }