sway: Add option to enable/disable swayidle
This commit is contained in:
parent
dbc235cdbf
commit
594e9524e6
2 changed files with 5 additions and 1 deletions
|
@ -19,6 +19,9 @@ in
|
|||
options.eboskma.programs.sway = {
|
||||
enable = mkEnableOption "sway";
|
||||
package = mkPackageOption pkgs "sway" { };
|
||||
swayidle = mkEnableOption "swayidle" // {
|
||||
default = true;
|
||||
};
|
||||
|
||||
lock-wallpaper = mkOption {
|
||||
description = "Wallpaper to use for the lockscreen";
|
||||
|
@ -334,7 +337,7 @@ in
|
|||
};
|
||||
|
||||
services = {
|
||||
swayidle = {
|
||||
swayidle = mkIf cfg.swayidle {
|
||||
enable = true;
|
||||
events = [
|
||||
{
|
||||
|
|
|
@ -123,6 +123,7 @@ in
|
|||
sway = {
|
||||
enable = true;
|
||||
package = pkgs.sway;
|
||||
swayidle = false;
|
||||
lock-wallpaper = "${homeCfg.home.homeDirectory}/.wallpapers/river-3840.png";
|
||||
output = {
|
||||
"DP-1" = {
|
||||
|
|
Loading…
Reference in a new issue