diff options
| author | Natasha Moongrave <natasha@256phi.eu> | 2026-04-20 11:34:55 +0200 |
|---|---|---|
| committer | Natasha Moongrave <natasha@256phi.eu> | 2026-04-20 11:34:55 +0200 |
| commit | 8a47c7ebcd39c32e3b566d0ed1b645a82b55f9e3 (patch) | |
| tree | db45b4b7cfc664334a66c8df0ca27623fabf185e /home/rices/finals/niri.nix | |
| parent | a4bc3ae3780298b2f73379812d0cad03589861cc (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.nix | 31 |
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); + }; +} |
