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

rec {
  dunstrc = ./dunstrc;
  niri = ./niri.config.kdl;
  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
  '';
}