-
Notifications
You must be signed in to change notification settings - Fork 42
/
default.nix
34 lines (30 loc) · 980 Bytes
/
default.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
let
inherit (builtins.fromJSON (builtins.readFile ./flake.lock)) nodes;
# Fetch using flake lock, for legacy compat
fromFlake = name:
let inherit (nodes.${name}) locked;
in fetchTarball {
url =
"https://github.com/${locked.owner}/${locked.repo}/archive/${locked.rev}.tar.gz";
sha256 = locked.narHash;
};
in
{ nixpkgs-lib ? import ((fromFlake "nixpkgs-lib") + "/lib")
, base16-schemes ? fromFlake "base16-schemes"
, ...
}: rec {
lib-contrib = import ./lib/contrib;
lib-core = import ./lib/core { inherit nixpkgs-lib; };
lib = lib-core // { contrib = lib-contrib; };
tests = import ./lib/core/tests { inherit nixpkgs-lib; };
colorSchemes = import ./schemes.nix { inherit lib base16-schemes; };
# Alias
colorschemes = colorSchemes;
homeManagerModules = rec {
colorScheme = import ./module;
# Alias
colorscheme = colorScheme;
default = colorScheme;
};
homeManagerModule = homeManagerModules.colorScheme;
}