forked from the-argus/spicetify-nix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
54 lines (45 loc) · 1.45 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
description = "A nix flake that provides a home-manager module to configure spicetify with.";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
};
outputs = {nixpkgs, ...}: let
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
];
genSystems = nixpkgs.lib.genAttrs supportedSystems;
pkgs = genSystems (system: import nixpkgs {inherit system;});
# legacy reasons...
defaultSystem = "x86_64-linux";
in {
# legacy stuff thats just for x86_64 linux
pkgs = pkgs.${defaultSystem}.callPackage ./pkgs {};
lib = pkgs.${defaultSystem}.callPackage ./lib {};
# version which supports aarch64
libs = genSystems (
system: (pkgs.${system}.callPackage ./lib {})
);
packages = genSystems (system: {
spicetify = pkgs.${system}.callPackage ./pkgs {};
default = self.packages.${system}.spicetify;
});
homeManagerModules = {
spicetify = import ./module.nix;
default = self.homeManagerModules.spicetify;
};
pkgSets = genSystems (system: (
nixpkgs.lib.warn
"deprecated, use packages.${system}.default"
self.packages.${system}.default
));
homeManagerModule =
nixpkgs.lib.warn
"deprecated, use homeManagerModules.default"
self.homeManagerModules.default;
templates.default = {
path = ./template;
description = "A basic home-manager configuration which installs spicetify with the Dribbblish theme.";
};
};
}