restructure system to be toggable

This commit is contained in:
2025-10-04 11:46:34 -05:00
parent 464ecdc6ca
commit 8b4d73b2e3
6 changed files with 85 additions and 47 deletions

View File

@@ -1,10 +1,16 @@
{ config, pkgs, ... }:
{
virtualisation.docker = {
enable = true;
daemon.settings = {
experimental = true;
options = {
modules.system.docker.enable = lib.mkEnableOption "enables docker";
};
config = lib.mkIf config.modules.system.docker.enable {
virtualisation.docker = {
enable = true;
daemon.settings = {
experimental = true;
};
};
};
}