trying to unmodularize my setup

This commit is contained in:
Elias Gasparis 2025-01-05 11:49:14 +08:00
parent 195383e6d9
commit 2f5ed1481c
9 changed files with 56 additions and 20 deletions

View file

@ -1,24 +1,12 @@
{ 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;
};
};
};
}