-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathflake.nix
45 lines (40 loc) · 1.43 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
{
description = ''
Pure and reproducible, and possibly curated collection of wallpapers.
'';
outputs = _: let
lib = import ./lib;
systems = ["x86_64-linux" "aarch64-linux"];
genSystems = lib.genAttrs (import systems);
in {
# Construct the wallpapers output for wallpkgs from a directory and a list of
# extensions allow.
wallpapers = lib.toWallpkgs ./wallpapers ["png" "jpg" "jpeg" "gif"];
# For backwards compatibility. This should re removed in the future.
packages = genSystems (_:
builtins.listToAttrs (map (n: {
name = n;
value = throw ''
As of #15, wallpkgs no longer uses packages.$${system} for wallpapers, as wallpapers
should never have been system-dependent. All wallpapers have been moved to a top-level
'wallpapers' attribute under the repository.
To use your own wallpapers, you must conform to the new filename format.
For example, 'inputs.wallpkgs.wallpapers.catppuccin-01' now refers to what used to
reside in /share/wallpapers/catppuccin/01.png. To suppress this error, get wallpapers
from the wallpapers output.
'';
}) [
"catppuccin"
"oxocarbon"
"unorganized"
"tokyo_night"
"space"
"gruvbox"
"rose_pine"
"nature"
"cities"
"monochrome"
"nord"
]));
};
}