blob: d4b627299d71c09ffcbd1790e93b8191238dfa5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{ pkgs, lib, config, ... }: {
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
];
};
}
|