user/{eww,hypridle,hyprlock}: configure based on options.me
This commit is contained in:
parent
f33525f565
commit
1a62545c3c
5 changed files with 78 additions and 37 deletions
|
|
@ -1,18 +1,43 @@
|
|||
{ config, lib, ... }: {
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
inherit (lib)
|
||||
mkOption
|
||||
types;
|
||||
in {
|
||||
options.me = {
|
||||
environment = lib.mkOption {
|
||||
type = lib.types.enum [ "desktop" "laptop" "headless" ];
|
||||
environment = mkOption {
|
||||
type = types.enum [ "desktop" "laptop" "headless" ];
|
||||
default = "desktop";
|
||||
};
|
||||
|
||||
fprint = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
fprint = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
|
||||
gui = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
gui = mkOption {
|
||||
type = types.bool;
|
||||
default = config.me.environment != "headless";
|
||||
};
|
||||
|
||||
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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue