modularise home conf
This commit is contained in:
parent
b07d950147
commit
4477d0d4a2
23 changed files with 1152 additions and 855 deletions
50
home/programs/swaync.nix
Normal file
50
home/programs/swaync.nix
Normal file
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
palette-hex,
|
||||
...
|
||||
}: let
|
||||
palette-hex = pkgs.lib.nix-rice.palette.toRgbHex pkgs.rice.palette;
|
||||
palette-shex = pkgs.lib.nix-rice.palette.toRGBShortHex pkgs.rice.palette;
|
||||
in {
|
||||
config.home.packages = [pkgs.swaynotificationcenter];
|
||||
config.ezConf = {
|
||||
"swaync/config.json" = ../dots/swaync/config.json;
|
||||
"swaync/configSchema.json" = ../dots/swaync/configSchema.json;
|
||||
};
|
||||
config.ezServices = {
|
||||
swaync = "${lib.getExe pkgs.swaynotificationcenter}";
|
||||
};
|
||||
config.xdg.configFile."swaync/style.css" = {
|
||||
enable = true;
|
||||
text = with palette-hex; (builtins.replaceStrings
|
||||
[
|
||||
"#PANELBG"
|
||||
"#COLBORDER"
|
||||
"#NOTIBGNORM"
|
||||
"#NOTIBGHOVER"
|
||||
"#NOTIBGFOCUS"
|
||||
"#NOTIBGCLOSE"
|
||||
"#NOTIBGHVERCLOSE"
|
||||
"#BGSELECTED"
|
||||
"#FONT"
|
||||
"#BORDER"
|
||||
"#ROUNDING"
|
||||
]
|
||||
[
|
||||
util.bg
|
||||
normal.black
|
||||
util.bg
|
||||
bright.black
|
||||
bright.black
|
||||
normal.black
|
||||
bright.black
|
||||
bright.black
|
||||
pkgs.rice.fonts.sans.name
|
||||
(builtins.toString pkgs.rice.borders.thickness)
|
||||
(builtins.toString pkgs.rice.borders.rounding)
|
||||
]
|
||||
(builtins.readFile ../dots/swaync/style.css));
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue