about summary refs log tree commit diff stats
path: root/modules/by-name/ri/river/module.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-09-02 09:17:50 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-09-02 09:17:50 +0200
commitb31c9b948fbc12fcbf23b30673afc41cf420f6c5 (patch)
tree63eb2b803f4aca1eb9e797e60a2f1caa35d7d717 /modules/by-name/ri/river/module.nix
parenttreewide: Remove `with pkgs;` (diff)
downloadnixos-config-b31c9b948fbc12fcbf23b30673afc41cf420f6c5.zip
treewide: Use `river-classic` instead of `river`
`river-classic` is the continuation of the 3.0 branch without the
breaking introduction of the window manager process.
Diffstat (limited to 'modules/by-name/ri/river/module.nix')
-rw-r--r--modules/by-name/ri/river/module.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/by-name/ri/river/module.nix b/modules/by-name/ri/river/module.nix
index 8be77777..75725a8d 100644
--- a/modules/by-name/ri/river/module.nix
+++ b/modules/by-name/ri/river/module.nix
@@ -17,7 +17,7 @@
 }: let
   cfg = config.soispha.programs.river;
   esa = lib.strings.escapeShellArg;
-  riverctl = lib.getExe' pkgs.river "riverctl";
+  riverctl = lib.getExe' cfg.package "riverctl";
 
   mkOutputFlags = output: flags: let
     expandedFlags = builtins.concatStringsSep " " (lib.attrsets.mapAttrsToList (flag: value: "--${esa flag} ${esa value}") flags);
@@ -84,6 +84,8 @@ in {
   options.soispha.programs.river = {
     enable = lib.mkEnableOption "river";
 
+    package = lib.mkPackageOption pkgs "river-classic" {};
+
     unicodeInput = {
       enable = lib.mkEnableOption "udev rules for rawhid based unicode input";
     };
@@ -235,7 +237,7 @@ in {
           + mkHeading "Background services" longRunningPrograms
           + mkHeading "Layout Setup" ''
             err_fail ${riverctl} default-layout rivertile
-            ${lib.getExe' pkgs.river "rivertile"} -main-ratio 0.5 -view-padding 1 -outer-padding 0
+            ${lib.getExe' cfg.package "rivertile"} -main-ratio 0.5 -view-padding 1 -outer-padding 0
           '';
       };
     };