aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name/i3/i3bar-river/module.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/by-name/i3/i3bar-river/module.nix')
-rw-r--r--modules/by-name/i3/i3bar-river/module.nix32
1 files changed, 20 insertions, 12 deletions
diff --git a/modules/by-name/i3/i3bar-river/module.nix b/modules/by-name/i3/i3bar-river/module.nix
index 2b9150d3..982ec1e3 100644
--- a/modules/by-name/i3/i3bar-river/module.nix
+++ b/modules/by-name/i3/i3bar-river/module.nix
@@ -110,20 +110,28 @@ in {
};
config = lib.mkIf cfg.enable {
- home-manager.users.soispha = {
- systemd.user.services."i3bar-river" = {
- description = "Highly customizable Wayland bar for river";
- partOf = "graphical-session.target";
- after = "graphical-session.target";
- requisite = "graphical-session.target";
- serviceConfig = {
- ExecStart = "${lib.getExe cfg.package}";
- ExecReload = "kill -SIGUSR2 $MAINPID";
- Restart = "on-failure";
- };
- wantedBy = "graphical-session.target";
+ systemd.user.services."i3bar-river" = {
+ description = "Highly customizable Wayland bar for river";
+ partOf = ["graphical-session.target"];
+ after = ["graphical-session.target"];
+ requisite = ["graphical-session.target"];
+
+ path = [
+ pkgs.bash # `sh` is needed for starting the status command
+
+ # TODO: This should be a wrapper of the status command <2026-06-23>
+ pkgs.btrfs-progs # `btrfs` is needed by the storage block in the status command
+ ];
+
+ serviceConfig = {
+ ExecStart = "${lib.getExe cfg.package}";
+ ExecReload = "kill -SIGUSR2 $MAINPID";
+ Restart = "on-failure";
};
+ wantedBy = ["graphical-session.target"];
+ };
+ home-manager.users.soispha = {
programs.i3bar-river = {
enable = true;
inherit (cfg) package;