-
-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathflake.nix
More file actions
62 lines (57 loc) · 1.64 KB
/
Copy pathflake.nix
File metadata and controls
62 lines (57 loc) · 1.64 KB
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
57
58
59
60
61
62
{
inputs = {
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-26.05";
nixpkgs-libvncserver.url = "github:NixOS/nixpkgs/e6f23dc08d3624daab7094b701aa3954923c6bbb";
utils.url = "github:numtide/flake-utils";
flake-compat.url = "github:edolstra/flake-compat";
};
nixConfig.extra-substituters = "https://cache.saumon.network/proxmox-nixos";
nixConfig.extra-trusted-public-keys = "proxmox-nixos:D9RYSWpQQC/msZUWphOY2I5RLH5Dd6yQcaHIuug7dWM=";
description = "Proxmox on NixOS";
outputs =
{
self,
nixpkgs-stable,
nixpkgs-libvncserver,
utils,
...
}:
{
nixosModules = import ./modules;
}
//
utils.lib.eachSystem
[
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
]
(
system:
let
pkgs = import nixpkgs-stable {
inherit system;
overlays = [
self.overlays.${system}
(_: _: { inherit (nixpkgs-libvncserver.legacyPackages.${system}) libvncserver; })
];
};
in
{
overlays = _: _: (import ./pkgs { inherit pkgs; });
packages = utils.lib.filterPackages system (import ./pkgs { inherit pkgs; });
checks =
if (system == "x86_64-linux") then
(
self.packages.${system}
// (import ./tests {
inherit pkgs;
extraBaseModules = self.nixosModules;
})
)
else
{ };
}
);
}