small restructuring

This commit is contained in:
server 2024-10-19 03:12:20 +02:00
parent 2bfb4f5c97
commit 0b799c87b6

View file

@ -9,8 +9,12 @@
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
}; };
outputs = {self, nixpkgs, nixpkgs-unstable, sops-nix, lanzaboote, microvm}@inputs: let outputs = {self, nixpkgs, nixpkgs-unstable, sops-nix, lanzaboote, microvm}@inputs: let
imports = [ imports = { imports = [
]; sops-nix.nixosModules.sops
passInputs mkLocalModsInput
lanzaboote.nixosModules.lanzaboote
inputs.microvm.nixosModules.host
];};
passInputs = ({lib,config,...}:{ passInputs = ({lib,config,...}:{
options.flakePath = lib.mkOption {type = lib.types.path;}; options.flakePath = lib.mkOption {type = lib.types.path;};
config.flakePath = ./.; config.flakePath = ./.;
@ -30,26 +34,22 @@
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
./hosts/forgenite ./hosts/forgenite
sops-nix.nixosModules.sops imports
passInputs mkLocalModsInput ];
];
}; };
"forgejo-ci" = nixpkgs.lib.nixosSystem { "forgejo-ci" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
./hosts/forgejo-ci ./hosts/forgejo-ci
sops-nix.nixosModules.sops imports
passInputs mkLocalModsInput ];
];
}; };
"supernova" = nixpkgs.lib.nixosSystem { "supernova" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
./hosts/supernova ./hosts/supernova
sops-nix.nixosModules.sops imports
passInputs mkLocalModsInput ];
lanzaboote.nixosModules.lanzaboote
];
}; };
}; };
}; };