aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-04-10 16:58:20 +0200
committerNatasha Moongrave <natasha@256phi.eu>2026-04-10 16:58:20 +0200
commit9c53d45a1f3ccc9672fbcb6e0922a300ec965caf (patch)
tree39b5f156f363915a7c2fa5f3076f342267a31a3a
parentf0e86e19e06ed4cb14472e99b9bef4033d262a2e (diff)
Fix up the formating
-rw-r--r--home/rices/schrottkatze/niri.nix58
1 files changed, 32 insertions, 26 deletions
diff --git a/home/rices/schrottkatze/niri.nix b/home/rices/schrottkatze/niri.nix
index f2ce69f..32e145f 100644
--- a/home/rices/schrottkatze/niri.nix
+++ b/home/rices/schrottkatze/niri.nix
@@ -1,34 +1,40 @@
# this file must only be saved via autosave due to the formatter.
# else it will be ugly
-{pkgs, lib, ...}: {
+{
+ pkgs,
+ lib,
+ ...
+}: {
home.packages = with pkgs; [
zenity
xwayland-satellite
swaybg
];
- 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}\""))
- [
- ["eww" "open-many" "topBar" "bottomBar"]
- ["${pkgs.swaybg}/bin/swaybg" "-i" "${./niri/wallpaper.jpg}" "-m" "fill"]
- ["touch" ".config/niri/live.kdl"]
- ]));
- other = [
- "include \"live.kdl\""
- "output \"eDP-1\" { scale 1.1; }"
- "animations { window-open { duration-ms 3000; curve \"linear\"; custom-shader r\"\n${builtins.readFile ./niri/shaders/arc.frag}\";};}"
- "binds {Mod+Shift+I { spawn \"${./niri/scripts/cpdate.sh}\"; }; }"
- ];
- in {
- target = ".config/niri/config.kdl";
- text = lib.concatLines (startups ++ kdlfiles ++ other);
- };
+
+ 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}\""))
+ [
+ ["eww" "open-many" "topBar" "bottomBar"]
+ ["sh" "-c" "sleep 1 && swaybg -o eDP-1 -i ${../../../assets/wallpapers/insert_coin.jpeg} -m fill"]
+ ["touch" ".config/niri/live.kdl"]
+ ]));
+ other = [
+ "include \"live.kdl\""
+ "output \"eDP-1\" { scale 1.1; }"
+ "animations { window-open { duration-ms 3000; curve \"linear\"; custom-shader r\"\n${builtins.readFile ./niri/shaders/arc.frag}\";};}"
+ "binds {Mod+Shift+I { spawn \"${./niri/scripts/cpdate.sh}\"; }; }"
+ ];
+ in {
+ target = ".config/niri/config.kdl";
+ text = lib.concatLines (startups ++ kdlfiles ++ other);
+ };
}