mirror of
https://github.com/sstent/vmimages.git
synced 2025-12-06 06:01:51 +00:00
sync
This commit is contained in:
21
flake.nix
21
flake.nix
@@ -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";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user