This commit is contained in:
2023-02-18 15:19:35 -05:00
parent df823f7e4e
commit 2b45edc5cc
4 changed files with 46 additions and 32 deletions

View File

@@ -16,6 +16,7 @@
#ssssh secret!! Agenix install
agenix.url = "github:ryantm/agenix";
agenix.inputs.nixpkgs.follows = "nixpkgs";
#import nixos-generators for building images
nixos-generators = {
@@ -25,8 +26,13 @@
};
outputs =
inputs@{ self, nixpkgs, home-manager, nixos-generators, deploy-rs, agenix, ... }: {
outputs = inputs@{ self, nixpkgs, home-manager, nixos-generators, deploy-rs
, agenix, ... }:
let
system = "x86_64-linux";
myData = import ./data.nix;
in {
nixosConfigurations = {
HyperV = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
@@ -34,7 +40,17 @@
modules = [
./hosts/HyperV/configuration.nix
./modules
# Add agenix for secret management.
agenix.nixosModules.age
{
environment.systemPackages = [agenix.defaultPackage.${system}];
}
];
specialArgs = {
inherit inputs myData;
};
};
};
@@ -46,6 +62,7 @@
./hosts/HyperV/configuration.nix
./hosts/HyperV/hyperv.nix
./modules
];
format = "hyperv";
};