chore(nix/deps): Manage (Spiced) Spotify with Nix
This commit is contained in:
parent
4b9ac3b623
commit
01d4cf8273
5 changed files with 70 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, pkgs-unstable, config, vars, common, inputs, ... }:
|
||||
{ pkgs, pkgs-unstable, spicePkgs, config, vars, common, inputs, ... }:
|
||||
|
||||
let
|
||||
libFixup = import ../../lib/darwin/libFixup.nix;
|
||||
|
@ -74,6 +74,14 @@ in {
|
|||
# Create /etc/zshrc that loads the nix-darwin environment.
|
||||
programs.zsh.enableCompletion = false; # causing "insecure directories and files" error if user doesn't have configured zsh
|
||||
|
||||
programs.spicetify = {
|
||||
enable = true;
|
||||
enabledExtensions = with spicePkgs.extensions; [
|
||||
adblock
|
||||
shuffle
|
||||
];
|
||||
};
|
||||
|
||||
# Set Git commit hash for darwin-version.
|
||||
system.configurationRevision = vars.rev or null;
|
||||
|
||||
|
|
|
@ -30,11 +30,13 @@ in
|
|||
}
|
||||
) pkgs pkgs-unstable;
|
||||
common = (mkCommon { inherit pkgs pkgs-unstable; });
|
||||
spicePkgs = inputs.spicetify-nix.legacyPackages.${system};
|
||||
in
|
||||
nix-darwin.lib.darwinSystem {
|
||||
inherit system;
|
||||
specialArgs = { inherit inputs pkgs pkgs-unstable vars common; };
|
||||
specialArgs = { inherit inputs pkgs pkgs-unstable spicePkgs vars common; };
|
||||
modules = [
|
||||
inputs.spicetify-nix.nixosModules.default # Also works on nix-darwin thanks to it being nixosConfiguration replacement for macOS
|
||||
./configuration.nix
|
||||
];
|
||||
};
|
||||
|
@ -57,11 +59,13 @@ in
|
|||
}
|
||||
) pkgs pkgs-unstable;
|
||||
common = (mkCommon { inherit pkgs pkgs-unstable; });
|
||||
spicePkgs = inputs.spicetify-nix.legacyPackages.${system};
|
||||
in
|
||||
nix-darwin.lib.darwinSystem {
|
||||
inherit system;
|
||||
specialArgs = { inherit inputs pkgs pkgs-unstable vars common; };
|
||||
specialArgs = { inherit inputs pkgs pkgs-unstable spicePkgs vars common; };
|
||||
modules = [
|
||||
inputs.spicetify-nix.nixosModules.default
|
||||
./configuration.nix
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue