about summary refs log tree commit diff
path: root/users/tazjin/dotfiles/default.nix
blob: 6291a10303e737da992ff6b3ec79d056df57ac0a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ depot, pkgs, ... }@args:

rec {
  dunstrc = ./dunstrc;
  niri = ./niri.config.kdl;
  fuzzel = ./fuzzel.ini;
  waybar = {
    config = import ./waybar/config.nix args;
    style = pkgs.runCommandNoCC "waybar-style.css"
      {
        CHICAGO95 = depot.third_party.chicago95;
      } ''
      cat ${./waybar/style.css} | ${pkgs.envsubst}/bin/envsubst > $out
    '';
  };

  # 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
  '';
}