home: renamed desktop.river.randomWallpaper.enable to randomWallpaper

This commit is contained in:
Aly Raffauf 2024-04-21 13:47:41 -04:00
parent 3191a42ad0
commit 9396ec8755
2 changed files with 6 additions and 8 deletions

View file

@ -22,7 +22,7 @@
firefox.enable = lib.mkDefault true;
kanshi.enable = lib.mkDefault true;
};
desktop.river.randomWallpaper.enable = lib.mkDefault true;
desktop.river.randomWallpaper = lib.mkDefault true;
};
programs.swaylock.enable = lib.mkDefault true;
@ -139,8 +139,7 @@
timeout 300 '${lock} \
timeout 330 '${config.wayland.windowManager.sway.package}/bin/swaymsg "output * dpms off"' \
resume '${config.wayland.windowManager.sway.package}/bin/swaymsg "output * dpms on"' \
before-sleep '${lock}'
''
before-sleep '${lock}' ''
else ''
${pkgs.swayidle}/bin/swayidle -w \
timeout 240 '${pkgs.brightnessctl}/bin/brightnessctl -s set 10' \
@ -149,8 +148,7 @@
timeout 330 '${config.wayland.windowManager.sway.package}/bin/swaymsg "output * dpms off"' \
resume '${config.wayland.windowManager.sway.package}/bin/swaymsg "output * dpms on"' \
timeout 900 '${pkgs.systemd}/bin/systemctl suspend' \
before-sleep '${lock}'
'';
before-sleep '${lock}' '';
riverctl = pkgs.river + "/bin/riverctl";
brightness = "${pkgs.swayosd}/bin/swayosd-client";

View file

@ -18,11 +18,11 @@
'';
in {
options = {
alyraffauf.desktop.river.randomWallpaper.enable =
alyraffauf.desktop.river.randomWallpaper =
lib.mkEnableOption "Enables swaybg random wallpaper script.";
};
config = lib.mkIf config.alyraffauf.desktop.river.randomWallpaper.enable {
config = lib.mkIf config.alyraffauf.desktop.river.randomWallpaper {
# Packages that should be installed to the user profile.
home.packages = with pkgs; [swaybg swaybg-random];