flake,nixos,home: add spicetify-nix
This commit is contained in:
parent
444e915566
commit
d4c07e763b
5 changed files with 58 additions and 2 deletions
24
flake.lock
24
flake.lock
|
@ -458,6 +458,7 @@
|
||||||
"pre-commit-hooks-nix": "pre-commit-hooks-nix",
|
"pre-commit-hooks-nix": "pre-commit-hooks-nix",
|
||||||
"rust-overlay": "rust-overlay",
|
"rust-overlay": "rust-overlay",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
|
"spicetify-nix": "spicetify-nix",
|
||||||
"systems": "systems",
|
"systems": "systems",
|
||||||
"tokyonight": "tokyonight",
|
"tokyonight": "tokyonight",
|
||||||
"wlroots": "wlroots",
|
"wlroots": "wlroots",
|
||||||
|
@ -510,6 +511,29 @@
|
||||||
"type": "github"
|
"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": {
|
"systems": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689347949,
|
"lastModified": 1689347949,
|
||||||
|
|
|
@ -57,6 +57,11 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
inputs.nixpkgs-stable.follows = "nixpkgs-stable";
|
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
|
### De-dupe
|
||||||
crane = {
|
crane = {
|
||||||
|
@ -154,6 +159,7 @@
|
||||||
lanzaboote,
|
lanzaboote,
|
||||||
nix-darwin,
|
nix-darwin,
|
||||||
sops-nix,
|
sops-nix,
|
||||||
|
spicetify-nix,
|
||||||
impermanence,
|
impermanence,
|
||||||
tokyonight,
|
tokyonight,
|
||||||
metacubexd,
|
metacubexd,
|
||||||
|
@ -192,6 +198,7 @@
|
||||||
./users/guanranwang/home-manager/nixos/presets/desktop/gaming.nix
|
./users/guanranwang/home-manager/nixos/presets/desktop/gaming.nix
|
||||||
./users/guanranwang/home-manager/nixos/presets/desktop/torrenting.nix
|
./users/guanranwang/home-manager/nixos/presets/desktop/torrenting.nix
|
||||||
];
|
];
|
||||||
|
home-manager.extraSpecialArgs = {inherit spicetify-nix;}; # im consfused
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
myFlake.nixos.boot.noLoaderMenu = true;
|
myFlake.nixos.boot.noLoaderMenu = true;
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
gparted
|
gparted
|
||||||
timeshift
|
timeshift
|
||||||
mpv
|
mpv
|
||||||
spicetify-cli
|
|
||||||
|
|
||||||
### matrix
|
### matrix
|
||||||
#fluffychat
|
#fluffychat
|
||||||
|
@ -19,7 +18,6 @@
|
||||||
|
|
||||||
### music
|
### music
|
||||||
easyeffects
|
easyeffects
|
||||||
spotify
|
|
||||||
yesplaymusic
|
yesplaymusic
|
||||||
amberol
|
amberol
|
||||||
netease-cloud-music-gtk
|
netease-cloud-music-gtk
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
../dotfiles.nix
|
../dotfiles.nix
|
||||||
../fonts.nix
|
../fonts.nix
|
||||||
../i18n.nix
|
../i18n.nix
|
||||||
|
../spicetify.nix
|
||||||
../theme.nix
|
../theme.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
26
users/guanranwang/home-manager/nixos/spicetify.nix
Normal file
26
users/guanranwang/home-manager/nixos/spicetify.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue