nixos/taffybar: pin status-notifier-item package

This commit is contained in:
2026-02-18 12:49:25 -08:00
committed by Kat Huang
parent 3c1c20d8c1
commit 3ee5f226ee
3 changed files with 14 additions and 4 deletions

View File

@@ -166,6 +166,12 @@
}); });
in in
{ {
# Expose commonly-needed ecosystem packages to callers (e.g. NixOS/home-manager
# modules) so they can run the pinned binaries directly.
packages = {
status-notifier-item = hpkgs.status-notifier-item;
};
devShell = hpkgs.shellFor { devShell = hpkgs.shellFor {
packages = p: [ p.imalison-taffybar p.taffybar ]; packages = p: [ p.imalison-taffybar p.taffybar ];
nativeBuildInputs = (with hpkgs; [ nativeBuildInputs = (with hpkgs; [

6
nixos/flake.lock generated
View File

@@ -1910,11 +1910,11 @@
"status-notifier-item": { "status-notifier-item": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1770955859, "lastModified": 1771366898,
"narHash": "sha256-h95eUeTkNsdrVxAx0Nv0ViXHSkhhOfPF4L4DhtbfkNs=", "narHash": "sha256-P032QnjoXfrr20LW+EBq/5fWDhDnYe7mJRkjEMf4EGE=",
"owner": "taffybar", "owner": "taffybar",
"repo": "status-notifier-item", "repo": "status-notifier-item",
"rev": "a0958505f4e5fc145f34d7ad2615688d6668e02a", "rev": "e73da596911511034af94637d57cec8ccd1f68e2",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -30,7 +30,11 @@ makeEnable config "myModules.taffybar" false {
home-manager.sharedModules = [ home-manager.sharedModules = [
{ {
services.status-notifier-watcher.enable = true; services."status-notifier-watcher".enable = true;
# home-manager's module defaults to nixpkgs' status-notifier-item, which can lag.
# Point it at the pinned flake version instead.
services."status-notifier-watcher".package = pkgs.lib.mkForce
inputs.imalison-taffybar.packages.${pkgs.stdenv.hostPlatform.system}.status-notifier-item;
# Disable kded6's statusnotifierwatcher module so it doesn't race with # Disable kded6's statusnotifierwatcher module so it doesn't race with
# the Haskell status-notifier-watcher for the org.kde.StatusNotifierWatcher bus name. # the Haskell status-notifier-watcher for the org.kde.StatusNotifierWatcher bus name.