diff options
Diffstat (limited to 'flakes/lib')
-rw-r--r-- | flakes/lib/flake.lock | 41 | ||||
-rw-r--r-- | flakes/lib/flake.nix | 7 |
2 files changed, 34 insertions, 14 deletions
diff --git a/flakes/lib/flake.lock b/flakes/lib/flake.lock index 3ca158e..ca5d027 100644 --- a/flakes/lib/flake.lock +++ b/flakes/lib/flake.lock | |||
@@ -4,20 +4,20 @@ | |||
4 | "inputs": { | 4 | "inputs": { |
5 | "flake-compat": "flake-compat", | 5 | "flake-compat": "flake-compat", |
6 | "flake-utils": "flake-utils", | 6 | "flake-utils": "flake-utils", |
7 | "nix-github-actions": "nix-github-actions", | ||
7 | "nixpkgs": "nixpkgs", | 8 | "nixpkgs": "nixpkgs", |
8 | "stable": "stable" | 9 | "stable": "stable" |
9 | }, | 10 | }, |
10 | "locked": { | 11 | "locked": { |
11 | "lastModified": 1687954574, | 12 | "lastModified": 1739900653, |
12 | "narHash": "sha256-YasVTaNXq2xqZdejyIhuyqvNypmx+K/Y1ZZ4+raeeII=", | 13 | "narHash": "sha256-hPSLvw6AZQYrZyGI6Uq4XgST7benF/0zcCpugn/P0yM=", |
13 | "owner": "immae", | 14 | "owner": "zhaofengli", |
14 | "repo": "colmena", | 15 | "repo": "colmena", |
15 | "rev": "e427171150a35e23204c4c15a2483358d22a0eff", | 16 | "rev": "2370d4336eda2a9ef29fce10fa7076ae011983ab", |
16 | "type": "github" | 17 | "type": "github" |
17 | }, | 18 | }, |
18 | "original": { | 19 | "original": { |
19 | "owner": "immae", | 20 | "owner": "zhaofengli", |
20 | "ref": "add-lib-get-flake", | ||
21 | "repo": "colmena", | 21 | "repo": "colmena", |
22 | "type": "github" | 22 | "type": "github" |
23 | } | 23 | } |
@@ -89,6 +89,27 @@ | |||
89 | "type": "github" | 89 | "type": "github" |
90 | } | 90 | } |
91 | }, | 91 | }, |
92 | "nix-github-actions": { | ||
93 | "inputs": { | ||
94 | "nixpkgs": [ | ||
95 | "colmena", | ||
96 | "nixpkgs" | ||
97 | ] | ||
98 | }, | ||
99 | "locked": { | ||
100 | "lastModified": 1737420293, | ||
101 | "narHash": "sha256-F1G5ifvqTpJq7fdkT34e/Jy9VCyzd5XfJ9TO8fHhJWE=", | ||
102 | "owner": "nix-community", | ||
103 | "repo": "nix-github-actions", | ||
104 | "rev": "f4158fa080ef4503c8f4c820967d946c2af31ec9", | ||
105 | "type": "github" | ||
106 | }, | ||
107 | "original": { | ||
108 | "owner": "nix-community", | ||
109 | "repo": "nix-github-actions", | ||
110 | "type": "github" | ||
111 | } | ||
112 | }, | ||
92 | "nixos-2305": { | 113 | "nixos-2305": { |
93 | "locked": { | 114 | "locked": { |
94 | "lastModified": 1687938137, | 115 | "lastModified": 1687938137, |
@@ -249,16 +270,16 @@ | |||
249 | }, | 270 | }, |
250 | "stable": { | 271 | "stable": { |
251 | "locked": { | 272 | "locked": { |
252 | "lastModified": 1669735802, | 273 | "lastModified": 1735563628, |
253 | "narHash": "sha256-qtG/o/i5ZWZLmXw108N2aPiVsxOcidpHJYNkT45ry9Q=", | 274 | "narHash": "sha256-OnSAY7XDSx7CtDoqNh8jwVwh4xNL/2HaJxGjryLWzX8=", |
254 | "owner": "NixOS", | 275 | "owner": "NixOS", |
255 | "repo": "nixpkgs", | 276 | "repo": "nixpkgs", |
256 | "rev": "731cc710aeebecbf45a258e977e8b68350549522", | 277 | "rev": "b134951a4c9f3c995fd7be05f3243f8ecd65d798", |
257 | "type": "github" | 278 | "type": "github" |
258 | }, | 279 | }, |
259 | "original": { | 280 | "original": { |
260 | "owner": "NixOS", | 281 | "owner": "NixOS", |
261 | "ref": "nixos-22.11", | 282 | "ref": "nixos-24.05", |
262 | "repo": "nixpkgs", | 283 | "repo": "nixpkgs", |
263 | "type": "github" | 284 | "type": "github" |
264 | } | 285 | } |
diff --git a/flakes/lib/flake.nix b/flakes/lib/flake.nix index 5b78fb6..b5bd7ee 100644 --- a/flakes/lib/flake.nix +++ b/flakes/lib/flake.nix | |||
@@ -2,8 +2,7 @@ | |||
2 | inputs.nixpkgs.url = "github:NixOS/nixpkgs"; | 2 | inputs.nixpkgs.url = "github:NixOS/nixpkgs"; |
3 | inputs.flake-parts.url = "github:hercules-ci/flake-parts"; | 3 | inputs.flake-parts.url = "github:hercules-ci/flake-parts"; |
4 | inputs.disko.url = "github:nix-community/disko"; | 4 | inputs.disko.url = "github:nix-community/disko"; |
5 | # replace with zhaofengli/colmena once https://github.com/zhaofengli/colmena/pull/161 is merged | 5 | inputs.colmena.url = "github:zhaofengli/colmena"; |
6 | inputs.colmena.url = "github:immae/colmena/add-lib-get-flake"; | ||
7 | inputs.nixos-anywhere.url = "github:numtide/nixos-anywhere"; | 6 | inputs.nixos-anywhere.url = "github:numtide/nixos-anywhere"; |
8 | inputs.nixos-anywhere.inputs.disko.follows = "disko"; | 7 | inputs.nixos-anywhere.inputs.disko.follows = "disko"; |
9 | inputs.nixos-anywhere.inputs.flake-parts.follows = "flake-parts"; | 8 | inputs.nixos-anywhere.inputs.flake-parts.follows = "flake-parts"; |
@@ -45,11 +44,11 @@ | |||
45 | 44 | ||
46 | }; | 45 | }; |
47 | flake = { | 46 | flake = { |
48 | nixosConfigurations.${name} = (colmena.lib.fromRawFlake self).nodes.${name}; | 47 | nixosConfigurations.${name} = (colmena.lib.makeHive self.outputs.colmena).nodes.${name}; |
49 | nixosConfigurations."${name}WithEncryption" = let | 48 | nixosConfigurations."${name}WithEncryption" = let |
50 | selfWithEncryption = nixpkgs.lib.recursiveUpdate self { outputs.colmena.meta.specialArgs.cryptKeyFile = "/run/decrypt-key"; }; | 49 | selfWithEncryption = nixpkgs.lib.recursiveUpdate self { outputs.colmena.meta.specialArgs.cryptKeyFile = "/run/decrypt-key"; }; |
51 | in | 50 | in |
52 | (colmena.lib.fromRawFlake selfWithEncryption).nodes.${name}; | 51 | (colmena.lib.makeHive selfWithEncryption.outputs.colmena).nodes.${name}; |
53 | colmena = { | 52 | colmena = { |
54 | meta.nixpkgs = nixpkgs.legacyPackages.${system}; | 53 | meta.nixpkgs = nixpkgs.legacyPackages.${system}; |
55 | meta.specialArgs = moduleArgs; | 54 | meta.specialArgs = moduleArgs; |