-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
executable file
·75 lines (74 loc) · 2.14 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
description = "dresden.zone nix flake";
inputs = {
nixpkgs.url = "github:MarcelCoding/nixpkgs/bird-no-auto-restart";
flake-utils.url = "github:numtide/flake-utils";
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs-stable.follows = "nixpkgs";
};
microvm = {
url = "github:astro/microvm.nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
ifstate = {
url = "git+https://codeberg.org/m4rc3l/ifstate.nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
dns = {
url = "github:dresden-zone/dns";
inputs.nixpkgs.follows = "nixpkgs";
};
dns-web = {
url = "github:dresden-zone/dns-web";
inputs.nixpkgs.follows = "nixpkgs";
};
doubleblind = {
url = "github:dresden-zone/doubleblind.science";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs@{ self, nixpkgs, microvm, sops-nix, ifstate, dns, dns-web, doubleblind, ... }: {
nixosConfigurations = {
dresden-zone = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs self; };
modules = [
microvm.nixosModules.microvm
sops-nix.nixosModules.sops
dns.nixosModules.chef
dns.nixosModules.maid
./modules/DresdenZone
./modules/dns
./hosts/dresden-zone
{
nixpkgs.overlays = [
dns.overlays.default
dns-web.overlays.default
];
}
];
};
doubleblind-science = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs self; };
modules = [
microvm.nixosModules.microvm
sops-nix.nixosModules.sops
doubleblind.nixosModules.doubleblind
./modules/DresdenZone
./modules/doubleblind
./hosts/doubleblind-science
{
nixpkgs.overlays = [
doubleblind.overlays.default
];
}
];
};
};
};
}