aboutsummaryrefslogtreecommitdiff
path: root/nixos/modules
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-06-20 09:32:47 +0200
committerKarel Kočí <cynerd@email.cz>2022-06-20 09:32:47 +0200
commita1f70372cb1696f67c6e47bebf0b026145507df5 (patch)
tree7bbe6ba9a2affe3f8b18cfbd8a08e9f69092cb1b /nixos/modules
parent41e7eb0160ded3b336a7759a82dc8eba0379751b (diff)
downloadnixos-personal-a1f70372cb1696f67c6e47bebf0b026145507df5.tar.gz
nixos-personal-a1f70372cb1696f67c6e47bebf0b026145507df5.tar.bz2
nixos-personal-a1f70372cb1696f67c6e47bebf0b026145507df5.zip
nixos/modules/develop: enable Docker, LXD and LXC correctly
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/develop.nix14
1 files changed, 10 insertions, 4 deletions
diff --git a/nixos/modules/develop.nix b/nixos/modules/develop.nix
index 54401ef..54db063 100644
--- a/nixos/modules/develop.nix
+++ b/nixos/modules/develop.nix
@@ -67,10 +67,6 @@ in {
# Gtk
glade
- # Containers
- lxc lxd
- docker
-
# Barcode generation
barcode
@@ -92,6 +88,16 @@ in {
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1366", ATTRS{idProduct}=="0105", MODE:="0660", GROUP="develop", SYMLINK+="jlink_%n"
'';
+ virtualisation.docker = {
+ enable = true;
+ autoPrune.enable = true;
+ };
+ virtualisation.lxd = {
+ enable = true;
+ recommendedSysctlSettings = true;
+ };
+ virtualisation.lxc.enable = true;
+
users.groups.develop = { };
users.users.cynerd.extraGroups = [
"docker" "lxd" "develop"