feat: use flake-parts and auto-generate nixosConfigurations for all hosts
This commit is contained in:
parent
4c89c45e3e
commit
e9a7e56e02
3 changed files with 62 additions and 8 deletions
16
flake.nix
16
flake.nix
|
@ -2,16 +2,16 @@
|
|||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
};
|
||||
|
||||
outputs = inputs @ { self, nixpkgs, ... }: {
|
||||
nixosConfigurations.backstage = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./hosts/backstage
|
||||
];
|
||||
specialArgs = { inherit inputs; };
|
||||
};
|
||||
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
];
|
||||
imports = [
|
||||
./hosts
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue