delft: add agenix to flake inputs
Pierre Bourdon committed
Jan 27, 2024 at 23:14 UTC
96ed312aed301f35b7bb161ecf19849c08bb3531
2 files changed
+99
-2
delft/flake.lock
+82
@@ -1,5 +1,28 @@
1
{
2
"nodes": {
3
+ "agenix": {
4
+ "inputs": {
5
+ "darwin": "darwin",
6
+ "home-manager": "home-manager",
7
+ "nixpkgs": [
8
+ "nixpkgs"
9
+ ],
10
+ "systems": "systems"
11
+ },
12
+ "locked": {
13
+ "lastModified": 1703433843,
14
+ "narHash": "sha256-nmtA4KqFboWxxoOAA6Y1okHbZh+HsXaMPFkYHsoDRDw=",
15
+ "owner": "ryantm",
16
+ "repo": "agenix",
17
+ "rev": "417caa847f9383e111d1397039c9d4337d024bf0",
18
+ "type": "github"
19
+ },
20
+ "original": {
21
+ "owner": "ryantm",
22
+ "repo": "agenix",
23
+ "type": "github"
24
+ }
25
+ },
26
"cpiotools": {
27
"inputs": {
28
"nixpkgs": "nixpkgs"
@@ -18,6 +41,49 @@
41
"type": "github"
42
}
43
},
44
+ "darwin": {
45
+ "inputs": {
46
+ "nixpkgs": [
47
+ "agenix",
48
+ "nixpkgs"
49
+ ]
50
+ },
51
+ "locked": {
52
+ "lastModified": 1700795494,
53
+ "narHash": "sha256-gzGLZSiOhf155FW7262kdHo2YDeugp3VuIFb4/GGng0=",
54
+ "owner": "lnl7",
55
+ "repo": "nix-darwin",
56
+ "rev": "4b9b83d5a92e8c1fbfd8eb27eda375908c11ec4d",
57
+ "type": "github"
58
+ },
59
+ "original": {
60
+ "owner": "lnl7",
61
+ "ref": "master",
62
+ "repo": "nix-darwin",
63
+ "type": "github"
64
+ }
65
+ },
66
+ "home-manager": {
67
+ "inputs": {
68
+ "nixpkgs": [
69
+ "agenix",
70
+ "nixpkgs"
71
+ ]
72
+ },
73
+ "locked": {
74
+ "lastModified": 1703113217,
75
+ "narHash": "sha256-7ulcXOk63TIT2lVDSExj7XzFx09LpdSAPtvgtM7yQPE=",
76
+ "owner": "nix-community",
77
+ "repo": "home-manager",
78
+ "rev": "3bfaacf46133c037bb356193bd2f1765d9dc82c1",
79
+ "type": "github"
80
+ },
81
+ "original": {
82
+ "owner": "nix-community",
83
+ "repo": "home-manager",
84
+ "type": "github"
85
+ }
86
+ },
87
"nix-netboot-serve": {
88
"inputs": {
89
"cpiotools": "cpiotools",
@@ -86,9 +152,25 @@
152
},
153
"root": {
154
"inputs": {
155
+ "agenix": "agenix",
156
"nix-netboot-serve": "nix-netboot-serve",
157
"nixpkgs": "nixpkgs_3"
158
}
159
+ },
160
+ "systems": {
161
+ "locked": {
162
+ "lastModified": 1681028828,
163
+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
164
+ "owner": "nix-systems",
165
+ "repo": "default",
166
+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
167
+ "type": "github"
168
+ },
169
+ "original": {
170
+ "owner": "nix-systems",
171
+ "repo": "default",
172
+ "type": "github"
173
+ }
174
}
175
},
176
"root": "root",
delft/flake.nix
+17
-2
@@ -2,7 +2,12 @@
2
inputs.nixpkgs.url = "nixpkgs/nixos-23.05-small";
3
inputs.nix-netboot-serve.url = "github:DeterminateSystems/nix-netboot-serve";
4
5
- outputs = flakes @ { self, nixpkgs, nix-netboot-serve }:
5
+ inputs.agenix = {
6
+ url = "github:ryantm/agenix";
7
+ inputs.nixpkgs.follows = "nixpkgs";
8
+ };
9
+
10
+ outputs = flakes @ { self, agenix, nixpkgs, nix-netboot-serve }:
11
let inherit (nixpkgs) lib;
12
in {
13
nixosConfigurations.eris = nixpkgs.lib.nixosSystem {
@@ -11,7 +16,8 @@
16
modules = [
17
./eris.nix
18
./eris-physical.nix
14
- flakes.nix-netboot-serve.nixosModules.nix-netboot-serve
19
+ agenix.nixosModules.age
20
+ nix-netboot-serve.nixosModules.nix-netboot-serve
21
];
22
};
23
@@ -27,5 +33,14 @@
33
nixopsConfigurations.default =
34
{ inherit nixpkgs; }
35
// import ./network.nix flakes;
36
+
37
+ # TODO: flake-utils.lib.eachDefaultSystem
38
+ devShell.x86_64-linux = let
39
+ pkgs = import nixpkgs { system = "x86_64-linux"; };
40
+ in pkgs.mkShell {
41
+ buildInputs = with pkgs; [
42
+ agenix.packages.x86_64-linux.agenix
43
+ ];
44
+ };
45
};
46
}