refactor: mkHost load-all infrastructure and convert simple features

This commit is contained in:
2026-04-12 21:27:43 +00:00
parent 3ff4583017
commit 6770bc76a2
18 changed files with 455 additions and 210 deletions

View File

@@ -1,12 +1,19 @@
{
nixos =
{ user, ... }:
{ config, lib, user, ... }:
let
cfg = config.features.docker;
in
{
virtualisation.docker = {
enable = true;
logDriver = "json-file";
};
options.features.docker.enable = lib.mkEnableOption "docker";
users.users.${user}.extraGroups = [ "docker" ];
config = lib.mkIf cfg.enable {
virtualisation.docker = {
enable = true;
logDriver = "json-file";
};
users.users.${user}.extraGroups = [ "docker" ];
};
};
}