nix-config/modules/commonopts.nix

32 lines
653 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;
};
2024-04-09 23:59:34 +02:00
isLaptop=lib.mkEnableOption {
description="machine is a laptop";
default=false;
};
isVm=lib.mkEnableOption {
description="machine is a virtual machine";
default=false;
};
};
};
}