bastion: Record top-level flake revision
Eelco Dolstra committed
Feb 3, 2020 at 17:46 UTC
24494be2851bccc427350cd50d80368d59bd4b40
2 files changed
+6
-3
bastion/network.nix
+4
-1
@@ -1,4 +1,4 @@
1
-{ self, nix, nixops, nixos-channel-scripts }:
1
+flakes @ { self, nix, nixops, nixos-channel-scripts }:
2
3
let
4
region = "eu-west-1";
@@ -125,6 +125,9 @@ in
125
../modules/hydra-mirror.nix
126
];
127
128
+ system.configurationRevision = flakes.self.rev
129
+ or throw "Cannot deploy from an unclean source tree!";
130
+
131
nixpkgs.overlays =
132
[ nix.overlay
133
nixops.overlay
delft/flake.nix
+2
-2
@@ -4,11 +4,11 @@
4
#inputs.nixpkgs.uri = "/home/deploy/src/edolstra-nixpkgs"; # toString ../../edolstra-nixpkgs; # = "nixpkgs/release-19.09";
5
inputs.nixpkgs.uri = "nixpkgs/release-19.09";
6
7
- outputs = { self, nixpkgs, hydra }: {
7
+ outputs = flakes @ { self, nixpkgs, hydra }: {
8
9
nixopsConfigurations.default =
10
{ inherit nixpkgs; }
11
- // import ./network.nix { inherit self nixpkgs hydra; };
11
+ // import ./network.nix { inherit self nixpkgs hydra flakes; };
12
13
};
14
}