flake: allow unfree terraform, treefmt: switch to terraform
This commit is contained in:
parent
ebf93eeb4f
commit
2f354ad448
3 changed files with 9 additions and 5 deletions
|
@ -6,12 +6,12 @@
|
|||
|
||||
programs = {
|
||||
deadnix.enable = true;
|
||||
hclfmt.enable = true;
|
||||
nixpkgs-fmt.enable = true;
|
||||
prettier.enable = true;
|
||||
ruff.check = true;
|
||||
ruff.format = true;
|
||||
statix.enable = true;
|
||||
terraform.enable = true;
|
||||
};
|
||||
|
||||
programs.mypy = {
|
||||
|
|
|
@ -71,6 +71,13 @@
|
|||
imports = [ ./dev/treefmt.nix ];
|
||||
};
|
||||
|
||||
_module.args.pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||
"terraform"
|
||||
];
|
||||
};
|
||||
|
||||
checks =
|
||||
let
|
||||
darwinConfigurations = lib.mapAttrs' (name: config: lib.nameValuePair name config.config.system.build.toplevel) ((lib.filterAttrs (_: config: config.pkgs.system == system)) self.darwinConfigurations);
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
terraform' = pkgs.terraform.overrideAttrs (_: { meta = { }; });
|
||||
in
|
||||
{
|
||||
devShells = {
|
||||
terraform = with pkgs; mkShellNoCC {
|
||||
packages = [
|
||||
(terraform'.withPlugins (p: [
|
||||
(terraform.withPlugins (p: [
|
||||
p.cloudflare
|
||||
p.external
|
||||
p.hydra
|
||||
|
|
Loading…
Add table
Reference in a new issue