2025-03-23 12:36:07 +11:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
let
|
|
|
|
|
inherit (lib)
|
|
|
|
|
mkOption
|
|
|
|
|
types;
|
|
|
|
|
in {
|
2025-03-23 11:52:43 +11:00
|
|
|
options.me = {
|
2025-03-23 12:36:07 +11:00
|
|
|
environment = mkOption {
|
|
|
|
|
type = types.enum [ "desktop" "laptop" "headless" ];
|
2025-03-23 11:52:43 +11:00
|
|
|
default = "desktop";
|
|
|
|
|
};
|
|
|
|
|
|
2025-03-23 12:36:07 +11:00
|
|
|
fprint = mkOption {
|
|
|
|
|
type = types.bool;
|
2025-03-23 11:52:43 +11:00
|
|
|
default = false;
|
|
|
|
|
};
|
|
|
|
|
|
2025-03-23 12:36:07 +11:00
|
|
|
gui = mkOption {
|
|
|
|
|
type = types.bool;
|
2025-03-23 11:52:43 +11:00
|
|
|
default = config.me.environment != "headless";
|
|
|
|
|
};
|
2025-03-23 12:36:07 +11:00
|
|
|
|
|
|
|
|
batteryDevice = mkOption {
|
|
|
|
|
type = types.nullOr types.string;
|
|
|
|
|
default = null;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
kbBacklightDevice = mkOption {
|
|
|
|
|
type = types.nullOr types.string;
|
|
|
|
|
default = null;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
hasBluetooth = mkOption {
|
|
|
|
|
type = types.bool;
|
|
|
|
|
default = config.me.environment == "laptop";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
hasWifi = mkOption {
|
|
|
|
|
type = types.bool;
|
|
|
|
|
default = config.me.environment == "laptop";
|
|
|
|
|
};
|
2025-03-23 11:52:43 +11:00
|
|
|
};
|
|
|
|
|
}
|