mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-26 08:11:55 -05:00
move sway/hyprland autoSuspend settings to desktop module
This commit is contained in:
parent
d037323c60
commit
23febc1d6a
|
@ -39,7 +39,7 @@ in {
|
|||
);
|
||||
|
||||
beforeSleeps =
|
||||
lib.optionals cfg.desktop.hyprland.autoSuspend
|
||||
lib.optionals cfg.desktop.autoSuspend
|
||||
[
|
||||
"before-sleep '${lib.getExe pkgs.playerctl} pause'"
|
||||
"before-sleep '${lib.getExe pkgs.swaylock}'"
|
||||
|
|
|
@ -20,7 +20,7 @@ in {
|
|||
);
|
||||
|
||||
beforeSleeps =
|
||||
lib.optionals cfg.desktop.sway.autoSuspend
|
||||
lib.optionals cfg.desktop.autoSuspend
|
||||
[
|
||||
"before-sleep '${lib.getExe pkgs.playerctl} pause'"
|
||||
"before-sleep '${lib.getExe pkgs.swaylock}'"
|
||||
|
|
|
@ -107,6 +107,12 @@ in {
|
|||
};
|
||||
|
||||
desktop = {
|
||||
autoSuspend = lib.mkOption {
|
||||
description = "Whether to autosuspend on idle.";
|
||||
default = cfg.desktop.hyprland.enable || cfg.desktop.sway.enable;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
hyprland = {
|
||||
enable = lib.mkOption {
|
||||
description = "Hyprland with full desktop session components.";
|
||||
|
@ -114,12 +120,6 @@ in {
|
|||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
autoSuspend = lib.mkOption {
|
||||
description = "Whether to autosuspend on idle.";
|
||||
default = cfg.desktop.hyprland.enable;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
laptopMonitors = lib.mkOption {
|
||||
description = "List of internal laptop monitors.";
|
||||
default = [];
|
||||
|
@ -195,12 +195,6 @@ in {
|
|||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
autoSuspend = lib.mkOption {
|
||||
description = "Whether to autosuspend on idle.";
|
||||
default = cfg.desktop.sway.enable;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
randomWallpaper = lib.mkOption {
|
||||
description = "Whether to enable random wallpaper script.";
|
||||
default = cfg.desktop.sway.enable;
|
||||
|
|
Loading…
Reference in a new issue