about summary refs log tree commit diff stats
path: root/home-manager/config/river/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home-manager/config/river/default.nix')
-rw-r--r--home-manager/config/river/default.nix23
1 files changed, 22 insertions, 1 deletions
diff --git a/home-manager/config/river/default.nix b/home-manager/config/river/default.nix
index d0de7f13..bd1c842c 100644
--- a/home-manager/config/river/default.nix
+++ b/home-manager/config/river/default.nix
@@ -1,9 +1,30 @@
 {
   config,
   pkgs,
+  sysLib,
   ...
 }: {
-  xdg.configFile."river/init".source = ./init;
+  xdg.configFile."river/init".source = sysLib.makeShellScriptWithLibrary {
+      name = "river_init";
+      script = ./init;
+      dependencies = builtins.attrValues {
+        # TODO inherit river_init_lesser
+        inherit
+          (pkgs)
+          river
+          glib # gnome lib
+          gammastep
+          wlr-randr
+          yambar
+          mako
+          swaybg
+          swayidle
+          alacritty
+          ;
+      };
+    }
+    + /bin/river_init;
+
   xdg.configFile."river/res".source = ./res;
 }
 # vim: ts=2