From 985453e6be02206ad61d14f1036ba3644b4c1acb Mon Sep 17 00:00:00 2001 From: teesh3rt Date: Sun, 1 Feb 2026 18:35:50 +0200 Subject: [PATCH] feat: premiumless premium, finally a thing --- flake.lock | 53 +++++++++++++++++++++++++++++++- flake.nix | 2 ++ modules/desktop/apps/spotify.nix | 21 +++++++++++++ 3 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 modules/desktop/apps/spotify.nix diff --git a/flake.lock b/flake.lock index 9d87cf1..be22c72 100644 --- a/flake.lock +++ b/flake.lock @@ -375,6 +375,22 @@ "type": "github" } }, + "nixpkgs_4": { + "locked": { + "lastModified": 1769461804, + "narHash": "sha256-msG8SU5WsBUfVVa/9RPLaymvi5bI8edTavbIq3vRlhI=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "bfc1b8a4574108ceef22f02bafcf6611380c100d", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "noctalia": { "inputs": { "nixpkgs": [ @@ -430,9 +446,29 @@ "niri-flake": "niri-flake", "nixpkgs": "nixpkgs_3", "noctalia": "noctalia", + "spicetify-nix": "spicetify-nix", "stylix": "stylix" } }, + "spicetify-nix": { + "inputs": { + "nixpkgs": "nixpkgs_4", + "systems": "systems_2" + }, + "locked": { + "lastModified": 1769923635, + "narHash": "sha256-GeeKHM5kXrkRvXFta455o09IZ5sNklQzpKpAD0QRbvI=", + "owner": "Gerg-L", + "repo": "spicetify-nix", + "rev": "46e80ec47220788400daf62b021345ed219ade29", + "type": "github" + }, + "original": { + "owner": "Gerg-L", + "repo": "spicetify-nix", + "type": "github" + } + }, "stylix": { "inputs": { "base16": "base16", @@ -446,7 +482,7 @@ "nixpkgs" ], "nur": "nur", - "systems": "systems_2", + "systems": "systems_3", "tinted-foot": "tinted-foot", "tinted-kitty": "tinted-kitty", "tinted-schemes": "tinted-schemes", @@ -498,6 +534,21 @@ "type": "github" } }, + "systems_3": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "tinted-foot": { "flake": false, "locked": { diff --git a/flake.nix b/flake.nix index 8a2735c..57f3aa2 100644 --- a/flake.nix +++ b/flake.nix @@ -30,6 +30,8 @@ url = "github:noctalia-dev/noctalia-shell"; inputs.nixpkgs.follows = "nixpkgs"; }; + + spicetify-nix.url = "github:Gerg-L/spicetify-nix"; }; outputs = inputs@{ flake-parts, ... }: diff --git a/modules/desktop/apps/spotify.nix b/modules/desktop/apps/spotify.nix new file mode 100644 index 0000000..c1a1077 --- /dev/null +++ b/modules/desktop/apps/spotify.nix @@ -0,0 +1,21 @@ +{ inputs, ... }: + +{ + flake.modules.nixos.desktop = { pkgs, ... }: let + spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system}; + in { + imports = [ + inputs.spicetify-nix.nixosModules.default + ]; + + programs.spicetify = { + enable = true; + + enabledExtensions = with spicePkgs.extensions; [ + adblock + hidePodcasts + shuffle + ]; + }; + }; +}