flake,nixos,home: add spicetify-nix

This commit is contained in:
Guanran Wang 2023-11-09 23:43:05 +08:00
parent 444e915566
commit d4c07e763b
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
5 changed files with 58 additions and 2 deletions

View file

@ -458,6 +458,7 @@
"pre-commit-hooks-nix": "pre-commit-hooks-nix",
"rust-overlay": "rust-overlay",
"sops-nix": "sops-nix",
"spicetify-nix": "spicetify-nix",
"systems": "systems",
"tokyonight": "tokyonight",
"wlroots": "wlroots",
@ -510,6 +511,29 @@
"type": "github"
}
},
"spicetify-nix": {
"inputs": {
"flake-utils": [
"flake-utils"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1699469086,
"narHash": "sha256-FC350WZKaTh+b0c3THfrJW9WNu1Y0oC9Y9F5z32gIFk=",
"owner": "the-argus",
"repo": "spicetify-nix",
"rev": "f395fe14de6d934159d3aa5cc904bbb41f1ea053",
"type": "github"
},
"original": {
"owner": "the-argus",
"repo": "spicetify-nix",
"type": "github"
}
},
"systems": {
"locked": {
"lastModified": 1689347949,

View file

@ -57,6 +57,11 @@
inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs-stable.follows = "nixpkgs-stable";
};
spicetify-nix = {
url = "github:the-argus/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
### De-dupe
crane = {
@ -154,6 +159,7 @@
lanzaboote,
nix-darwin,
sops-nix,
spicetify-nix,
impermanence,
tokyonight,
metacubexd,
@ -192,6 +198,7 @@
./users/guanranwang/home-manager/nixos/presets/desktop/gaming.nix
./users/guanranwang/home-manager/nixos/presets/desktop/torrenting.nix
];
home-manager.extraSpecialArgs = {inherit spicetify-nix;}; # im consfused
### Options
myFlake.nixos.boot.noLoaderMenu = true;

View file

@ -9,7 +9,6 @@
gparted
timeshift
mpv
spicetify-cli
### matrix
#fluffychat
@ -19,7 +18,6 @@
### music
easyeffects
spotify
yesplaymusic
amberol
netease-cloud-music-gtk

View file

@ -19,6 +19,7 @@
../dotfiles.nix
../fonts.nix
../i18n.nix
../spicetify.nix
../theme.nix
];
}

View file

@ -0,0 +1,26 @@
{
pkgs,
lib,
spicetify-nix,
...
}: let
spicePkgs = spicetify-nix.packages.${pkgs.system}.default;
in {
# allow spotify to be installed if you don't have unfree enabled already
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"spotify"
];
# import the flake's module for your system
imports = [spicetify-nix.homeManagerModule];
# configure spicetify :)
programs.spicetify = {
enable = true;
enabledExtensions = with spicePkgs.extensions; [
adblock
keyboardShortcut
];
};
}