trying to unmodularize my setup
This commit is contained in:
parent
195383e6d9
commit
2f5ed1481c
9 changed files with 56 additions and 20 deletions
24
nixosModules/module-docker.nix
Normal file
24
nixosModules/module-docker.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
# enable docker
|
||||
# not all systems need this
|
||||
|
||||
{
|
||||
|
||||
options = {
|
||||
dockerModule.enable =
|
||||
lib.mkEnableOption "enables Docker Module";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.dockerModule.enable {
|
||||
|
||||
# Enable Docker
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
autoPrune = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue