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";
|
repoWaybarDir = flakeRoot.outPath + "/assets/conf/desktop/waybar";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
programs.waybar = {
|
programs.waybar.enable = true;
|
||||||
enable = true;
|
programs.waybar.style = lib.mkForce ""; # Schakel standaardstijl uit
|
||||||
# Forceer leeg om de standaardstijlgeneratie uit te schakelen
|
|
||||||
style = lib.mkForce "";
|
|
||||||
};
|
|
||||||
# Forceer je eigen bestanden (overschrijft eventuele standaardgeneratie)
|
|
||||||
home.file.".config/waybar/config" = {
|
home.file.".config/waybar/config" = {
|
||||||
source = "${repoWaybarDir}/config.jsonc";
|
source = "${repoWaybarDir}/config.jsonc";
|
||||||
};
|
};
|
||||||
home.file.".config/waybar/style.css" = {
|
# Overschrijf style.css handmatig na alle andere stappen
|
||||||
source = "${repoWaybarDir}/style.css";
|
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
|
#+end_src
|
||||||
|
|
||||||
|
|||||||
@@ -3,16 +3,15 @@ let
|
|||||||
repoWaybarDir = flakeRoot.outPath + "/assets/conf/desktop/waybar";
|
repoWaybarDir = flakeRoot.outPath + "/assets/conf/desktop/waybar";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
programs.waybar = {
|
programs.waybar.enable = true;
|
||||||
enable = true;
|
programs.waybar.style = lib.mkForce ""; # Schakel standaardstijl uit
|
||||||
# Forceer leeg om de standaardstijlgeneratie uit te schakelen
|
|
||||||
style = lib.mkForce "";
|
|
||||||
};
|
|
||||||
# Forceer je eigen bestanden (overschrijft eventuele standaardgeneratie)
|
|
||||||
home.file.".config/waybar/config" = {
|
home.file.".config/waybar/config" = {
|
||||||
source = "${repoWaybarDir}/config.jsonc";
|
source = "${repoWaybarDir}/config.jsonc";
|
||||||
};
|
};
|
||||||
home.file.".config/waybar/style.css" = {
|
# Overschrijf style.css handmatig na alle andere stappen
|
||||||
source = "${repoWaybarDir}/style.css";
|
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