options: init

This commit is contained in:
LavaDesu 2025-03-23 11:52:43 +11:00
parent e1e94504e4
commit f33525f565
Signed by: cilly
GPG key ID: 6500251E087653C9
4 changed files with 28 additions and 1 deletions

18
modules/options.nix Normal file
View file

@ -0,0 +1,18 @@
{ config, lib, ... }: {
options.me = {
environment = lib.mkOption {
type = lib.types.enum [ "desktop" "laptop" "headless" ];
default = "desktop";
};
fprint = lib.mkOption {
type = lib.types.bool;
default = false;
};
gui = lib.mkOption {
type = lib.types.bool;
default = config.me.environment != "headless";
};
};
}