Skip to content

Commit 1d27b39

Browse files
committed
nix: cleanup and update flake
1 parent 5bba6ba commit 1d27b39

File tree

5 files changed

+46
-235
lines changed

5 files changed

+46
-235
lines changed

flake.lock

+33-188
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
flake-parts = { url = "github:hercules-ci/flake-parts"; inputs.nixpkgs-lib.follows = "nixpkgs"; };
44
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
55
terranix = { url = "github:terranix/terranix"; inputs.nixpkgs.follows = "nixpkgs"; };
6-
treefmt-nix.url = "github:numtide/treefmt-nix";
76
hercules-ci-effects = { url = "github:hercules-ci/hercules-ci-effects"; inputs.nixpkgs.follows = "nixpkgs"; };
87
};
98

@@ -12,10 +11,9 @@
1211
systems = [ "x86_64-linux" ];
1312

1413
imports = [
15-
./terraform
14+
./terraform/flake-module.nix
1615
./nix/development.nix
1716
./nix/deployment.nix
18-
inputs.hercules-ci-effects.flakeModule
1917
];
2018
};
2119
}

nix/deployment.nix

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{ withSystem, config, inputs, ... }:
22

33
{
4+
imports = [ inputs.hercules-ci-effects.flakeModule ];
5+
46
herculesCI = herculesCI: {
57
onPush.default.outputs.effects.terraform-deploy = withSystem config.defaultEffectSystem ({ pkgs, config, hci-effects, ... }:
68
hci-effects.mkEffect {
79
name = "terraform-deploy";
810
inputs = [
9-
config.packages.terraform-with-plugins
11+
config.packages.terraformWithPlugins
1012
pkgs.rage
1113
pkgs.age-plugin-yubikey # Needed to encryption
1214
];

0 commit comments

Comments
 (0)