-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
63 lines (58 loc) · 1.62 KB
/
Copy pathflake.nix
File metadata and controls
63 lines (58 loc) · 1.62 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
63
{
description = "Jerrita's Router Flake";
nixConfig = {
experimental-features = ["nix-command" "flakes"];
substituters = [
"https://mirrors.ustc.edu.cn/nix-channels/store"
"https://cache.nixos.org"
];
extra-substituters = [
"https://jerrita.cachix.org"
];
extra-trusted-public-keys = [
"jerrita.cachix.org-1:nuNrOWU7/dWbGwwE5bwUfvycsiPHb5NnD/aIZIcaPDI="
];
};
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
# scripts = {
# url = "github:jerrita/scripts";
# inputs.nixpkgs.follows = "nixpkgs";
# };
# utils.url = "github:gytis-ivaskevicius/flake-utils-plus";
};
outputs = {
self,
nixpkgs,
} @ inputs: rec {
nixosConfigurations.r2s = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
specialArgs = {inherit nixpkgs;};
modules = [
./hardware/r2s.nix
./router
];
};
images.r2s = nixosConfigurations.r2s.config.system.build.sdImage;
nixosConfigurations.esxi = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit nixpkgs;};
modules = [
./hardware/esxi.nix
./router
# scripts.nixosModules.ddns
];
};
nixosConfigurations.pve = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit nixpkgs;};
modules = [
./hardware/pve.nix
./router
# scripts.nixosModules.ddns
];
};
formatter."aarch64-darwin" = nixpkgs.legacyPackages."aarch64-darwin".alejandra;
formatter."x86_64-linux" = nixpkgs.legacyPackages."x86_64-linux".alejandra;
};
}