diff options
author | Silas Schöffel <sils@sils.li> | 2025-03-24 17:54:58 +0100 |
---|---|---|
committer | Silas Schöffel <sils@sils.li> | 2025-03-24 17:54:58 +0100 |
commit | 5a62cf91bb87ca4526730d9a8f56eb975fbf70cf (patch) | |
tree | 741e554eb089fecbfcaef66847c97e6d4f66088e /modules | |
parent | sound: init module (diff) | |
download | nix-config-5a62cf91bb87ca4526730d9a8f56eb975fbf70cf.zip |
docker: init
Diffstat (limited to 'modules')
-rw-r--r-- | modules/nixos/sils/default.nix | 1 | ||||
-rw-r--r-- | modules/nixos/sils/docker.nix | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/modules/nixos/sils/default.nix b/modules/nixos/sils/default.nix index 89aa111..01870c8 100644 --- a/modules/nixos/sils/default.nix +++ b/modules/nixos/sils/default.nix @@ -5,6 +5,7 @@ ./bluetooth.nix ./bootloader.nix ./disks.nix + ./docker.nix ./environment.nix ./firejail.nix ./font.nix diff --git a/modules/nixos/sils/docker.nix b/modules/nixos/sils/docker.nix new file mode 100644 index 0000000..91155b2 --- /dev/null +++ b/modules/nixos/sils/docker.nix @@ -0,0 +1,13 @@ +{ + config, + lib, + ... +}: let + cfg = config.sils.docker; +in { + options.sils.docker.enable = lib.mkEnableOption "docker"; + config = lib.mkIf cfg.enable { + virtualisation.docker.enable = true; + users.users.sils.extraGroups = ["docker"]; + }; +} |