restructure desktop with option config wrappers
This commit is contained in:
@@ -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 = {};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user