implementing home.file instead of xdg.config

This commit is contained in:
2026-03-01 18:30:28 +01:00
parent eb18a3628a
commit 15607aca9b
7 changed files with 568 additions and 555 deletions
+8 -3
View File
@@ -1,10 +1,15 @@
{config, lib, pkgs, flakeRoot, ... }:
{ config, lib, pkgs, flakeRoot, ... }:
let
lockPngSrc = flakeRoot.outPath + "/assets/lock.png";
hyprlockConf = flakeRoot.outPath + "/assets/conf/desktop/hypr/hyprlock.conf";
in
{
home.packages = [ pkgs.hyprlock ];
xdg.configFile."hypr/lock.png".source = lib.mkForce lockPngSrc;
xdg.configFile."hypr/hyprlock.conf".source = lib.mkForce hyprlockConf;
# Gebruik home.file voor echte bestanden (geen symlinks)
home.file.".config/hypr/lock.png" = {
source = lockPngSrc;
};
home.file.".config/hypr/hyprlock.conf" = {
source = hyprlockConf;
};
}