diff --git a/modules/programs/i3status.nix b/modules/programs/i3status.nix index ca1f133e4..5fd4f7417 100644 --- a/modules/programs/i3status.nix +++ b/modules/programs/i3status.nix @@ -138,6 +138,8 @@ in { } ''; }; + + package = mkPackageOption pkgs "i3status" { }; }; config = mkIf cfg.enable { @@ -197,7 +199,7 @@ in { }; }; - home.packages = [ pkgs.i3status ]; + home.packages = [ cfg.package ]; xdg.configFile."i3status/config".text = concatStringsSep "\n" ([ ] ++ optional (cfg.general != { }) (formatModule "general" cfg.general) diff --git a/tests/modules/programs/i3status/with-custom.nix b/tests/modules/programs/i3status/with-custom.nix index 830bc6c98..8b673b8ad 100644 --- a/tests/modules/programs/i3status/with-custom.nix +++ b/tests/modules/programs/i3status/with-custom.nix @@ -16,6 +16,8 @@ with lib; interval = 1; }; + package = config.lib.test.mkStubPackage { }; + modules = { "volume master" = { position = 1;