From a1f70372cb1696f67c6e47bebf0b026145507df5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 20 Jun 2022 09:32:47 +0200 Subject: nixos/modules/develop: enable Docker, LXD and LXC correctly --- nixos/modules/develop.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'nixos') 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" -- cgit v1.2.3