From 8a47c7ebcd39c32e3b566d0ed1b645a82b55f9e3 Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Mon, 20 Apr 2026 11:34:55 +0200 Subject: Add boilerplate for a niri rice (The Finals theemd) --- home/rices/finals/niri.nix | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 home/rices/finals/niri.nix (limited to 'home/rices/finals/niri.nix') 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); + }; +} -- cgit v1.2.3