about summary refs log tree commit diff stats
path: root/home-manager/config/river/default.nix
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-02-19 22:55:56 +0100
committerene <ene@sils.li>2023-02-19 22:55:56 +0100
commit1330d4a5e1be158d4053b6f93665a43066c45a7b (patch)
tree255f38478aaeba3e8f0c006c8478a6e7a21e772b /home-manager/config/river/default.nix
parentFeat(home-manager): Actually deploy the packages (diff)
downloadnixos-config-1330d4a5e1be158d4053b6f93665a43066c45a7b.zip
Fix(river): Record the deps for the init script
Diffstat (limited to '')
-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