about summary refs log tree commit diff
path: root/users/tazjin/dotfiles/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/tazjin/dotfiles/default.nix')
-rw-r--r--users/tazjin/dotfiles/default.nix22
1 files changed, 21 insertions, 1 deletions
diff --git a/users/tazjin/dotfiles/default.nix b/users/tazjin/dotfiles/default.nix
index 9b783a9c857c..6291a10303e7 100644
--- a/users/tazjin/dotfiles/default.nix
+++ b/users/tazjin/dotfiles/default.nix
@@ -1,3 +1,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
+  '';
 }