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";
};
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,...}:{
options.flakePath = lib.mkOption {type = lib.types.path;};
config.flakePath = ./.;
@ -30,25 +34,21 @@
system = "x86_64-linux";
modules = [
./hosts/forgenite
sops-nix.nixosModules.sops
passInputs mkLocalModsInput
imports
];
};
"forgejo-ci" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/forgejo-ci
sops-nix.nixosModules.sops
passInputs mkLocalModsInput
imports
];
};
"supernova" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/supernova
sops-nix.nixosModules.sops
passInputs mkLocalModsInput
lanzaboote.nixosModules.lanzaboote
imports
];
};
};