Added docker

This commit is contained in:
marc committed 2023-12-29 16:40:08 +01:00
1 parent 3713e4eca1
commit b898d0af42
2 files changed
+23

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
{ config, lib, pkgs, ... }:
let
cfg = config.samfelag.modules.dev.docker;
in
{
options.samfelag.modules.dev.docker = with lib.types; {
enable = lib.mkEnableOption "docker";
users = lib.my.mkOpt (listOf str) config.user.name;
};
config = lib.mkIf cfg.enable {
virtualisation.docker.enable = true;
users.extraGroups.docker.members = cfg.users;
environment.systemPackages = with pkgs; [
docker
];
};
}