diff options
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); + }; +} |
