File tree 3 files changed +21
-9
lines changed
3 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ $ nix flake check
37
37
38
38
Secrets: [ sops-nix] ( https://github.com/Mic92/sops-nix )
39
39
40
+ System Support: [ nix-systems] ( https://github.com/nix-systems/nix-systems )
41
+
40
42
Packaging and dependency management: [ nix-flakes] ( https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-flake.html )
41
43
42
44
## Hosts
Original file line number Diff line number Diff line change 8
8
inputs = {
9
9
nixpkgs . url = "nixpkgs/bc571a7386d20d50f6a6a71c66598695237afacb" ;
10
10
nixpkgs-unstable . url = "nixpkgs/nixos-unstable" ;
11
+ systems . url = "github:nix-systems/default-linux" ;
11
12
12
13
# Extra packages
13
14
nix-minecraft . url = "github:Infinidoge/nix-minecraft" ;
42
43
self ,
43
44
nixpkgs ,
44
45
nixpkgs-unstable ,
46
+ systems ,
45
47
nix-minecraft ,
46
48
sops-nix ,
47
49
pre-commit-hooks ,
48
50
treefmt-nix ,
49
51
devshell ,
50
52
...
51
53
} : let
52
- # List of system architectures that we want our flake binary outputs to support,
53
- # for example `outputs.packages` and `outputs.devshells`.
54
- # Note, this does not define architectures for the `nixosConfigurations`.
55
- supportedSystems = [
56
- "aarch64-linux"
57
- "x86_64-linux"
58
- ] ;
59
-
60
54
# Outputs a set of attrsets with each supported system architecture as keys.
61
55
# Inputs common `pkgs` and `system` attributes for use by the caller.
62
56
# This makes supporting multiple system-architectures easy.
63
57
eachSystem = f :
64
- nixpkgs . lib . genAttrs supportedSystems ( system :
58
+ nixpkgs . lib . genAttrs ( import systems ) ( system :
65
59
f {
66
60
inherit system ;
67
61
pkgs = nixpkgs . legacyPackages . ${ system } ;
You can’t perform that action at this time.
0 commit comments