Update Cfg and add proxy/wsl
This commit is contained in:
@@ -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;};
|
||||
};
|
||||
}
|
||||
|
||||
11
modules/shared/syscfg/extra.nix
Normal file
11
modules/shared/syscfg/extra.nix
Normal 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; };
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user