Forcing raw file overwrites

This commit is contained in:
2026-04-18 14:38:09 +02:00
parent d8b0eff04c
commit 5ffdc39090
4 changed files with 76 additions and 31 deletions

View File

@@ -4,7 +4,8 @@ let
theme = "dark";
in
{
home.file.".config/swaync/config.json".text = ''
home.file.".config/swaync/config.json" = {
text = ''
{
"$schema": "/etc/xdg/swaync/configSchema.json",
"positionX": "left",
@@ -115,9 +116,12 @@ in
}
}
}
'';
'';
force = true;
};
home.file.".config/swaync/style_dark.css".text = ''
home.file.".config/swaync/style_dark.css" = {
text = ''
:root {
--font-family: "Monocraft";
--accent-bg-color: rgb(214, 93, 14);
@@ -690,9 +694,12 @@ notificationwindow, blankwindow, blankwindow {
margin-left: 8px;
border-radius: var(--border-radius);
}
'';
'';
force = true;
};
home.file.".config/swaync/style_light.css".text = ''
home.file.".config/swaync/style_light.css" = {
text = ''
:root {
--font-family: "Monocraft";
--accent-bg-color: #D65D0E;
@@ -1265,7 +1272,12 @@ notificationwindow, blankwindow, blankwindow {
margin-left: 8px;
border-radius: var(--border-radius);
}
'';
'';
force = true;
};
home.file.".config/swaync/style.css".source = config.home.file.".config/swaync/style_${theme}.css".source;
home.file.".config/swaync/style.css" = {
source = config.home.file.".config/swaync/style_${theme}.css".source;
force = true;
};
}