Added IaC support

This commit is contained in:
Fred Drake
2024-10-10 15:52:36 -04:00
parent 654381910b
commit e349347a95
4 changed files with 71 additions and 2 deletions
+14
View File
@@ -89,6 +89,17 @@
};
extraSpecialArgs = {};
};
iacNixvimModule = {
inherit pkgs;
module = {pkgs, ...}: {
imports = [
./config
./config/iac
];
extraPackages = with pkgs; [sops ansible-lint];
};
extraSpecialArgs = {};
};
pkgs = import inputs.nixpkgs {
inherit system overlays;
config.allowUnfree = true;
@@ -99,6 +110,7 @@
goNvim = nixvim'.makeNixvimWithModule goNixvimModule;
pythonNvim = nixvim'.makeNixvimWithModule pythonNixvimModule;
javascriptNvim = nixvim'.makeNixvimWithModule javascriptNixvimModule;
iacNvim = nixvim'.makeNixvimWithModule iacNixvimModule;
in {
checks = {
# Run `nix flake check .` to verify that your config is not broken
@@ -117,6 +129,8 @@
python = pythonNvim;
# Lets you run `nix run .#javascript` to start nixvim with JS/TS configuration
javascript = javascriptNvim;
# Lets you run `nix run .#javascript` to start nixvim with IaC configuration
iac = iacNvim;
};
};
};