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 = {
|
options.eboskma.programs.sway = {
|
||||||
enable = mkEnableOption "sway";
|
enable = mkEnableOption "sway";
|
||||||
package = mkPackageOption pkgs "sway" { };
|
package = mkPackageOption pkgs "sway" { };
|
||||||
|
swayidle = mkEnableOption "swayidle" // {
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
|
||||||
lock-wallpaper = mkOption {
|
lock-wallpaper = mkOption {
|
||||||
description = "Wallpaper to use for the lockscreen";
|
description = "Wallpaper to use for the lockscreen";
|
||||||
|
@ -334,7 +337,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
swayidle = {
|
swayidle = mkIf cfg.swayidle {
|
||||||
enable = true;
|
enable = true;
|
||||||
events = [
|
events = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -123,6 +123,7 @@ in
|
||||||
sway = {
|
sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.sway;
|
package = pkgs.sway;
|
||||||
|
swayidle = false;
|
||||||
lock-wallpaper = "${homeCfg.home.homeDirectory}/.wallpapers/river-3840.png";
|
lock-wallpaper = "${homeCfg.home.homeDirectory}/.wallpapers/river-3840.png";
|
||||||
output = {
|
output = {
|
||||||
"DP-1" = {
|
"DP-1" = {
|
||||||
|
|
Loading…
Reference in a new issue