From 30a59b4be03472d20f1e21986b0f0478d28a274e Mon Sep 17 00:00:00 2001 From: LavaDesu Date: Thu, 20 Mar 2025 22:28:12 +1100 Subject: [PATCH] user/spicetify: link spicetify to .local/bin when switching themes using home-manager specialisations, the user environment in /etc/profiles/per-user is not updated (managed by nixos), so we create a symlink here to force it to use the current hm config's spicetify (.local/bin has higher priority) this is a workaround at best, a hack at worst. should probably somehow make /etc/profiles irrelevant and use something else user-managed. --- modules/user/spicetify.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/user/spicetify.nix b/modules/user/spicetify.nix index f917968..6249895 100644 --- a/modules/user/spicetify.nix +++ b/modules/user/spicetify.nix @@ -1,4 +1,4 @@ -{ config, inputs, pkgs, ... }: +{ config, inputs, lib, pkgs, ... }: let spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system}; in @@ -46,4 +46,6 @@ in volumePercentage ]; }; + + home.file.".local/bin/spotify".source = lib.getExe config.programs.spicetify.spicedSpotify; }