2024-09-26 23:12:57 +02:00
|
|
|
{ depot, pkgs, ... }@args:
|
|
|
|
|
|
|
|
rec {
|
2021-11-02 13:02:56 +01:00
|
|
|
dunstrc = ./dunstrc;
|
2024-09-05 10:09:34 +02:00
|
|
|
niri = ./niri.config.kdl;
|
2024-09-29 14:46:53 +02:00
|
|
|
fuzzel = ./fuzzel.ini;
|
2024-09-07 13:39:40 +02:00
|
|
|
waybar = {
|
|
|
|
config = import ./waybar/config.nix args;
|
2024-09-26 23:12:57 +02:00
|
|
|
style = pkgs.runCommandNoCC "waybar-style.css"
|
|
|
|
{
|
|
|
|
CHICAGO95 = depot.third_party.chicago95;
|
|
|
|
} ''
|
|
|
|
cat ${./waybar/style.css} | ${pkgs.envsubst}/bin/envsubst > $out
|
|
|
|
'';
|
2024-09-07 13:39:40 +02:00
|
|
|
};
|
2024-09-26 23:12:57 +02:00
|
|
|
|
|
|
|
# Helper derivation for iterating on waybar config.
|
|
|
|
waybarTest = pkgs.runCommandNoCC "waybar-conf" { } ''
|
|
|
|
mkdir -p $out
|
|
|
|
cat ${pkgs.writeText "waybar-conf.json" (builtins.toJSON(builtins.attrValues waybar.config))} > $out/config
|
|
|
|
cp ${waybar.style} $out/style.css
|
|
|
|
'';
|
2021-11-02 13:02:56 +01:00
|
|
|
}
|