9083c619a6
Note: not the actual initial commit. I swear I will stop repeatedly force pushing to this single commit eventually ok.
15 lines
247 B
Nix
15 lines
247 B
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.my.docker;
|
|
in {
|
|
options.my.docker = {
|
|
enable = lib.mkEnableOption null;
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
virtualisation.docker.enable = true;
|
|
my.user.extraGroups = [ "docker" ];
|
|
};
|
|
}
|