aboutsummaryrefslogtreecommitdiff
path: root/home/rices/finals/niri.nix
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-04-20 11:34:55 +0200
committerNatasha Moongrave <natasha@256phi.eu>2026-04-20 11:34:55 +0200
commit8a47c7ebcd39c32e3b566d0ed1b645a82b55f9e3 (patch)
treedb45b4b7cfc664334a66c8df0ca27623fabf185e /home/rices/finals/niri.nix
parenta4bc3ae3780298b2f73379812d0cad03589861cc (diff)
Add boilerplate for a niri rice (The Finals theemd)
Diffstat (limited to 'home/rices/finals/niri.nix')
-rw-r--r--home/rices/finals/niri.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/home/rices/finals/niri.nix b/home/rices/finals/niri.nix
new file mode 100644
index 0000000..b4e012b
--- /dev/null
+++ b/home/rices/finals/niri.nix
@@ -0,0 +1,31 @@
+{
+ pkgs,
+ lib,
+ ...
+}: {
+ home.packages = with pkgs; [
+ swaybg
+ ];
+
+ xdg.configFile."niri/live.kdl".text = "";
+
+ home.file."config" = let
+ kdlfiles =
+ lib.mapAttrsToList
+ (filename: _value: "include \"${./niri/kdl}/${filename}\"")
+ (lib.filterAttrs (key: value: value == "regular") (builtins.readDir ./niri/kdl));
+ startups =
+ map (it: "spawn-at-startup ${it}")
+ (map (lib.concatStringsSep " ")
+ (map (map (word: "\"${word}\""))
+ [
+ ["touch" ".config/niri/live.kdl"]
+ ]));
+ other = [
+ "include \"live.kdl\""
+ ];
+ in {
+ target = ".config/niri/config.kdl";
+ text = lib.concatLines (startups ++ kdlfiles ++ other);
+ };
+}