98069fa8d9
Remove per‑host imports across flake, modules, and profiles, exposing needed variables (system, printer settings, consoleKeyMap, etc.) as arguments. Drop unused printEnable flags from host variable files.
20 lines
362 B
Nix
20 lines
362 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
profile,
|
|
...
|
|
}: {
|
|
options.docker.enable = lib.mkEnableOption "Docker";
|
|
|
|
config.virtualisation.docker = lib.mkIf config.docker.enable {
|
|
enable = true;
|
|
enableNvidia =
|
|
if profile == "nvidia"
|
|
then true
|
|
else false;
|
|
package = pkgs.docker;
|
|
daemon.settings.dns = ["9.9.9.11" "149.112.112.11"];
|
|
};
|
|
}
|