nix-config/modules/hostopts.nix

36 lines
791 B
Nix
Raw Normal View History

{
config,
pkgs,
lib,
...
}: {
options = {
host = {
user = lib.mkOption {
type = lib.types.str;
description = "Primary human user";
};
fullName = lib.mkOption {
type = lib.types.str;
description = "Primary human users long name";
};
gui.enable = lib.mkEnableOption {
description = "enable GUI";
default = false;
};
isLaptop = lib.mkEnableOption {
description = "machine is a laptop";
default = false;
2024-04-09 23:59:34 +02:00
};
isVm = lib.mkEnableOption {
description = "machine is a virtual machine";
default = false;
2024-04-09 23:59:34 +02:00
};
isSever = lib.mkEnableOption {
description = "machine is primarily a server";
default = false;
};
};
};
}