Update Cfg and add proxy/wsl

This commit is contained in:
soraefir
2026-05-30 17:48:18 +02:00
parent d9e7775afc
commit 4217227070
18 changed files with 136 additions and 20 deletions

View File

@@ -14,10 +14,6 @@ in with lib; {
type = types.enum [ "nixos" "macos" "home" ];
default = "nixos";
};
system = mkOption {
type = types.enum [ "x86_64-linux" "x86_64-darwin" "-" ];
default = "x86_64-linux";
};
defaultUser = mkOption { type = types.str; };
make = import ./make.nix {inherit lib;};
net = import ./net.nix {inherit lib;};
@@ -32,5 +28,6 @@ in with lib; {
type = types.oneOf [ types.bool (types.submodule { options = import ./server.nix {inherit lib;}; }) ];
default = false;
};
extra = import ./extra.nix {inherit lib;};
};
}

View File

@@ -0,0 +1,11 @@
{ lib,... }:
with lib; {
wsl = mkOption { type = types.bool; default = false; };
hosts = mkOption { type = types.listOf (types.str); default = []; };
proxy = {
domain = mkOption { type = types.str; default = ""; };
port = mkOption { type = types.str; default = ""; };
noProxy = mkOption { type = types.str; default = ""; };
cert = mkOption { type = types.path; default = null; };
};
}