soraefir 972cb47e3f
All checks were successful
Nix Build / build-nixos (push) Successful in 5m27s
Merged Host/Home Opt into SysOpt
2024-04-14 12:09:03 +02:00

66 lines
1.5 KiB
Nix

{ 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 = [ ];
};
};
}