-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.nix
More file actions
40 lines (40 loc) · 901 Bytes
/
Copy pathnext.nix
File metadata and controls
40 lines (40 loc) · 901 Bytes
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
let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-24.11";
pkgs = import nixpkgs {
config = { };
overlays = [ ];
};
lib = pkgs.lib;
nixos =
modules:
import "${nixpkgs}/nixos/lib/eval-config.nix" ({
system = builtins.currentSystem;
inherit modules lib;
specialArgs = {
# the disadvantage of this pattern is that the `sources` argument is
# strictly required, otherwise argument resolution will recurse
# infinitely searching for the corresponding `_module.args`
sources = { };
};
});
in
nixos [
(
{
config,
lib,
sources,
...
}:
let
disko =
sources.disko or (builtins.fetchTarball "https://github.com/nix-community/disko/tarball/master");
in
{
imports = [
./disko.nix
"${disko}/module.nix"
];
}
)
]