diff --git a/dotfiles/config/hypr/hyprland.conf b/dotfiles/config/hypr/hyprland.conf index ca69b6f9..a13eeab4 100644 --- a/dotfiles/config/hypr/hyprland.conf +++ b/dotfiles/config/hypr/hyprland.conf @@ -599,5 +599,3 @@ exec-once = ~/.config/hypr/scripts/workspace-history.sh exec-once = wl-paste --type text --watch cliphist store exec-once = wl-paste --type image --watch cliphist store -# Night light (optional - comment out if not needed) -# exec-once = wlsunset -l 37.7 -L -122.4 diff --git a/nixos/desktop.nix b/nixos/desktop.nix index 9d2353ff..b972413b 100644 --- a/nixos/desktop.nix +++ b/nixos/desktop.nix @@ -5,6 +5,7 @@ makeEnable config "myModules.desktop" true { ./fonts.nix ./hyprland.nix ./keyd.nix + ./wlsunset.nix ]; assertions = [ diff --git a/nixos/hyprland.nix b/nixos/hyprland.nix index 795f30eb..a14465e9 100644 --- a/nixos/hyprland.nix +++ b/nixos/hyprland.nix @@ -22,7 +22,6 @@ makeEnable config "myModules.hyprland" true { grim # Screenshot utility slurp # Region selection swappy # Screenshot annotation - wlsunset # Night light / blue light filter nwg-displays # GUI monitor arrangement # hy3 plugin from flake (properly built against matching Hyprland) diff --git a/nixos/wlsunset.nix b/nixos/wlsunset.nix new file mode 100644 index 00000000..f4e247f4 --- /dev/null +++ b/nixos/wlsunset.nix @@ -0,0 +1,17 @@ +{ config, pkgs, lib, makeEnable, ... }: +makeEnable config "myModules.wlsunset" true { + home-manager.sharedModules = [ + { + services.wlsunset = { + enable = true; + latitude = 37.7; + longitude = -122.4; + temperature = { + day = 6500; + night = 4000; + }; + systemdTarget = "hyprland-session.target"; + }; + } + ]; +}