restructure desktop with option config wrappers

This commit is contained in:
2025-11-05 18:40:25 -06:00
parent f448ce43ec
commit 8c4a82a73f
3 changed files with 40 additions and 23 deletions

View File

@@ -3,12 +3,18 @@
lib,
config,
...
}: {
}: let
cfg = config.desktop.hypr;
in {
options.desktop.hypr = {
enable = lib.mkEnableOption "enable hypr on nixos side";
};
# enable hyprland
programs.hyprland.enable = true;
config = lib.mkIf cfg.enable {
# enable hyprland
programs.hyprland.enable = true;
# give hyprlock perms to unlock
security.pam.services.hyprlock = {};
# give hyprlock perms to unlock
security.pam.services.hyprlock = {};
};
}