Regenerated

This commit is contained in:
2026-03-22 19:05:45 +00:00
parent dc4596d981
commit 47084d2513
33 changed files with 11 additions and 1464 deletions
+11 -12
View File
@@ -1006,8 +1006,15 @@ let
username = config.defaultUser or "henrov";
assetPath = ../../../assets/system/conf/${moduleName};
waybarConfig = "${assetPath}/waybar.conf";
waybarStyle = "${assetPath}/style.css";
files = builtins.filter (f: builtins.pathExists f) [
"${assetPath}/waybar.conf"
"${assetPath}/style.css"
];
homeFiles = lib.genAttrs (builtins.map (f: builtins.baseNameOf f) files) (name: {
source = files.${name};
target = ".config/waybar/${name}";
});
in
{
# Install Waybar system-wide
@@ -1015,16 +1022,8 @@ in
pkgs.waybar
];
# Deploy config files via Home Manager
home-manager.users.${username}.home.file = lib.genAttrs [
"waybar/config"
"waybar/style.css"
] (file: let
src = if file == "waybar/config" then waybarConfig else waybarStyle;
in {
source = if builtins.pathExists src then src else null;
target = ".config/${file}";
});
# Deploy only existing files via Home Manager
home-manager.users.${username}.home.file = homeFiles;
}
#+END_SRC