implementing home.file instead of xdg.config

This commit is contained in:
2026-03-01 18:45:56 +01:00
parent 7380f7c2c5
commit 4abf56c2ec
3 changed files with 324 additions and 327 deletions
+308 -309
View File
File diff suppressed because it is too large Load Diff
+8 -9
View File
@@ -1775,18 +1775,17 @@ let
repoWaybarDir = flakeRoot.outPath + "/assets/conf/desktop/waybar";
in
{
programs.waybar = {
enable = true;
# Forceer leeg om de standaardstijlgeneratie uit te schakelen
style = lib.mkForce "";
};
# Forceer je eigen bestanden (overschrijft eventuele standaardgeneratie)
programs.waybar.enable = true;
programs.waybar.style = lib.mkForce ""; # Schakel standaardstijl uit
home.file.".config/waybar/config" = {
source = "${repoWaybarDir}/config.jsonc";
};
home.file.".config/waybar/style.css" = {
source = "${repoWaybarDir}/style.css";
};
# Overschrijf style.css handmatig na alle andere stappen
home.activation.waybarStyle = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
mkdir -p "${config.xdg.configHome}/waybar"
cp "${repoWaybarDir}/style.css" "${config.xdg.configHome}/waybar/style.css"
chmod 644 "${config.xdg.configHome}/waybar/style.css"
'';
}
#+end_src
+8 -9
View File
@@ -3,16 +3,15 @@ let
repoWaybarDir = flakeRoot.outPath + "/assets/conf/desktop/waybar";
in
{
programs.waybar = {
enable = true;
# Forceer leeg om de standaardstijlgeneratie uit te schakelen
style = lib.mkForce "";
};
# Forceer je eigen bestanden (overschrijft eventuele standaardgeneratie)
programs.waybar.enable = true;
programs.waybar.style = lib.mkForce ""; # Schakel standaardstijl uit
home.file.".config/waybar/config" = {
source = "${repoWaybarDir}/config.jsonc";
};
home.file.".config/waybar/style.css" = {
source = "${repoWaybarDir}/style.css";
};
# Overschrijf style.css handmatig na alle andere stappen
home.activation.waybarStyle = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
mkdir -p "${config.xdg.configHome}/waybar"
cp "${repoWaybarDir}/style.css" "${config.xdg.configHome}/waybar/style.css"
chmod 644 "${config.xdg.configHome}/waybar/style.css"
'';
}