-
Notifications
You must be signed in to change notification settings - Fork 9
/
flake.nix
56 lines (50 loc) · 1.58 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
55
56
{
description = ''
Pure and reproducible, and possibly curated collection of wallpapers.
'';
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default";
};
outputs = {
self,
nixpkgs,
systems,
}: let
inherit (nixpkgs) lib;
genSystems = lib.genAttrs (import systems);
pkgsFor = nixpkgs.legacyPackages;
version = self.shortRev or "dirty";
in {
overlays.default = _: prev: let
callWallpaper = style:
prev.callPackage ./nix/builder.nix {
inherit style version;
};
in rec {
# Complete repository: larger and more varied collection.
# Naturally, means longer build times.
full = wallpkgs;
wallpkgs = callWallpaper null;
# Call individual collections by category.
catppuccin = callWallpaper "catppuccin";
oxocarbon = callWallpaper "oxocarbon";
cities = callWallpaper "cities";
monochrome = callWallpaper "monochrome";
nature = callWallpaper "nature";
space = callWallpaper "space";
unorganized = callWallpaper "unorganized";
tokyo_night = callWallpaper "tokyo_night";
gruvbox = callWallpaper "gruvbox";
rose_pine = callWallpaper "rose_pine";
};
# Generate package outputsfrom available overlay packages.
packages = genSystems (system:
(self.overlays.default null pkgsFor.${system})
// {
default = self.packages.${system}.wallpkgs;
});
# I do not accept anything else.
formatter = genSystems (system: pkgsFor.${system}.alejandra);
};
}