implementing home.file instead of xdg.config
This commit is contained in:
+308
-309
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user