chore(nix/deps): Manage (Spiced) Spotify with Nix

This commit is contained in:
Ahmad Ansori Palembani 2024-11-06 10:31:11 +07:00
parent 4b9ac3b623
commit 01d4cf8273
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
5 changed files with 70 additions and 12 deletions

View file

@ -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
];
};