Merged Host/Home Opt into SysOpt
All checks were successful
Nix Build / build-nixos (push) Successful in 5m27s
All checks were successful
Nix Build / build-nixos (push) Successful in 5m27s
This commit is contained in:
65
modules/shared/syscfg/default.nix
Normal file
65
modules/shared/syscfg/default.nix
Normal file
@ -0,0 +1,65 @@
|
||||
{ inputs, lib, ... }:
|
||||
let
|
||||
userOpt = with lib; {
|
||||
username = mkOption { type = types.str; };
|
||||
wm = mkOption {
|
||||
type = types.enum [ "Wayland" "X11" ];
|
||||
default = "Wayland";
|
||||
};
|
||||
git = {
|
||||
username = mkOption { type = types.str; };
|
||||
email = mkOption { type = types.str; };
|
||||
key = mkOption { type = types.str; };
|
||||
};
|
||||
};
|
||||
in with lib; {
|
||||
options.usercfg = userOpt;
|
||||
options.syscfg = {
|
||||
hostname = mkOption { type = types.str; };
|
||||
defaultUser = mkOption { type = types.str; };
|
||||
make = {
|
||||
cli = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
};
|
||||
gui = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
virt = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
};
|
||||
power = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
game = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
develop = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
net = {
|
||||
wlp = {
|
||||
enable = mkOption { type = types.bool; };
|
||||
nif = mkOption { type = types.str; };
|
||||
};
|
||||
wg = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
};
|
||||
ip4 = mkOption { type = types.str; };
|
||||
ip6 = mkOption { type = types.str; };
|
||||
};
|
||||
};
|
||||
users = mkOption {
|
||||
type = types.listOf (types.submodule { options = userOpt; });
|
||||
default = [ ];
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user