hyprland: fixes

This commit is contained in:
NullBite 2024-05-10 22:19:48 -04:00
parent 1221c4f64c
commit 6a329abe98
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -76,10 +76,10 @@ in
options.nixfiles.sessions.hyprland = { options.nixfiles.sessions.hyprland = {
enable = lib.mkOption { enable = lib.mkOption {
description = "Whether to enable hyprland.";
type = lib.types.bool; type = lib.types.bool;
default = if (builtins.hasAttr "home-manager" osConfig) then osConfig.nixfiles.sessions.hyprland.enable else false; default = if (builtins.hasAttr "home-manager" osConfig) then osConfig.nixfiles.sessions.hyprland.enable else false;
example = true; example = true;
description = "Whether to enable hyprland.";
}; };
autolock = lib.mkOption { autolock = lib.mkOption {
@ -91,8 +91,8 @@ in
nixfiles.greetd.settings.autolock. nixfiles.greetd.settings.autolock.
''; '';
type = lib.types.bool; type = lib.types.bool;
default = osConfig.nixfiles.greetd.settings.autolock or false; default = osConfig.nixfiles.programs.greetd.settings.autolock or false;
defaultText = "osConfig.nixfiles.greetd.settings.autolock or false"; defaultText = "osConfig.nixfiles.programs.greetd.settings.autolock or false";
example = true; example = true;
}; };
}; };