diff --git a/home-manager/hyprland/default.nix b/home-manager/hyprland/default.nix index 60786fd..377df45 100644 --- a/home-manager/hyprland/default.nix +++ b/home-manager/hyprland/default.nix @@ -5,5 +5,6 @@ #./hyprland-xwaylandvideobridge.nix not needed anymore ./waybar.nix ./hyprlock.nix + ./hyprshade.nix ]; } diff --git a/home-manager/hyprland/hyprland-settings.nix b/home-manager/hyprland/hyprland-settings.nix index e8d9a96..175295a 100644 --- a/home-manager/hyprland/hyprland-settings.nix +++ b/home-manager/hyprland/hyprland-settings.nix @@ -15,9 +15,6 @@ let in { config = lib.mkIf cfg.enable { - - home.file.".config/hypr/hyprshade.toml".source = - ../../.config/hypr/hyprshade.toml; #programs.swaylock.enable = true; wayland.windowManager.hyprland = { enable = true; @@ -308,7 +305,6 @@ in #"${pkgs.swww} img $(ls -d /synced/default/dinge/Bg/* | shuf -n 1)" "${pkgs.swww} img ${config.stylix.image}" "${pkgs.networkmanagerapplet}/bin/nm-applet --indicator &" - "${pkgs.hyprshade}/bin/hyprshade auto" "dex --autostart --environment Hyprland" "${pkgs.hypridle}/bin/hypridle &" #"${pkgs.dunst}/bin/dunst &" diff --git a/home-manager/hyprland/hyprshade.nix b/home-manager/hyprland/hyprshade.nix new file mode 100644 index 0000000..199958d --- /dev/null +++ b/home-manager/hyprland/hyprshade.nix @@ -0,0 +1,17 @@ +{ osConfig, pkgs, lib, ... }: + +let cfg = osConfig.custom.graphical.hyprland; +in { + config = lib.mkIf cfg.enable { + home.activation.hyprshade = { + after = [ "writeBoundary" ]; + before = [ ]; + data = '' + ${pkgs.hyprshade}/bin/hyprshade install + ${pkgs.systemd}/bin/systemctl --user enable --now hyprshade.timer + ''; + }; + home.file.".config/hypr/hyprshade.toml".source = ../../.config/hypr/hyprshade.toml; + wayland.windowManager.hyprland.settings.exec-once = [ "${pkgs.hyprshade}/bin/hyprshade auto" ]; + }; +} diff --git a/modules/graphical/code.nix b/modules/graphical/code.nix index cdc0edd..aafb05c 100644 --- a/modules/graphical/code.nix +++ b/modules/graphical/code.nix @@ -17,6 +17,7 @@ in #jetbrains.clion insomnia nodejs_22 # needed for tabby extension + python3 ]; #environment.sessionVariables = {