blob: 2499699fb25948ba68f43e58e57d519b050832df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{ pkgs, lib, config, userDetails, ... }: {
options = {
docker.enable = lib.mkEnableOption "enables docker";
docker.btrfsSupport = lib.mkEnableOption "changes docker storageDriver to btrfs";
};
config = lib.mkIf config.docker.enable {
virtualisation.docker = {
enable = true;
storageDriver = lib.mkIf config.docker.btrfsSupport "btrfs";
};
environment.systemPackages = with pkgs; [
docker-compose
];
users.groups.docker.members = [ userDetails.username ];
};
}
|