From 52febc5943ca328ca7fdb2e9d0cd459f03cbb232 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 2 May 2026 11:26:08 -0700 Subject: [PATCH] Link Hyprland config directory --- nixos/hyprland.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/nixos/hyprland.nix b/nixos/hyprland.nix index 64965c5e..219c9ee7 100644 --- a/nixos/hyprland.nix +++ b/nixos/hyprland.nix @@ -185,7 +185,15 @@ home-manager.sharedModules = [ inputs.hyprscratch.homeModules.default ( - {lib, ...}: { + { + config, + lib, + ... + }: let + hyprConfigDir = + config.lib.file.mkOutOfStoreSymlink + "${config.home.homeDirectory}/dotfiles/dotfiles/config/hypr"; + in { services.kanshi = { enable = true; systemdTarget = "graphical-session.target"; @@ -239,7 +247,7 @@ }; }; - xdg.configFile."hypr/scripts".enable = false; + xdg.configFile."hypr".source = hyprConfigDir; xdg.configFile."systemd/user/wayland-wm@hyprland.desktop.service.d/10-cleanup-stale-session.conf".text = '' [Service]