generic nixosConfigurations

This commit is contained in:
Zynh Ludwig 2024-06-28 06:44:15 -07:00
parent d4b83fd5a4
commit 0431b86525

View file

@ -19,34 +19,49 @@
outputs = { self, nixpkgs, ... }@inputs:
{
nixosConfigurations = {
snowhawk = nixpkgs.lib.nixosSystem {
nixosConfigurations = map
({ hostname, system }: {
inherit system;
specialArgs = { inherit inputs; };
system = "x86_64-linux";
modules = [
./hosts/snowhawk/hardware-configuration.nix
./hosts/${hostname}/hardware-configuration.nix
./configuration.nix
inputs.home-manager.nixosModules.default
];
};
sprite = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
system = "aarch64-linux";
modules = [
./hosts/sprite/hardware-configuration.nix
./configuration.nix
inputs.home-manager.nixosModules.default
})
[
{ hostname = "snowhawk"; system = "x86_64-linux"; }
{ hostname = "sprite"; system = "aarch64-linux"; }
{ hostname = "nixos"; system = "x86_64-linux"; }
];
};
nixos = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
system = "x86_64-linux";
modules = [
./hosts/nixos/hardware-configuration.nix
./configuration.nix
inputs.home-manager.nixosModules.default
];
};
};
# {
# snowhawk = nixpkgs.lib.nixosSystem {
# specialArgs = { inherit inputs; };
# system = "x86_64-linux";
# modules = [
# ./hosts/snowhawk/hardware-configuration.nix
# ./configuration.nix
# inputs.home-manager.nixosModules.default
# ];
# };
# sprite = nixpkgs.lib.nixosSystem {
# specialArgs = { inherit inputs; };
# system = "aarch64-linux";
# modules = [
# ./hosts/sprite/hardware-configuration.nix
# ./configuration.nix
# inputs.home-manager.nixosModules.default
# ];
# };
# nixos = nixpkgs.lib.nixosSystem {
# specialArgs = { inherit inputs; };
# system = "x86_64-linux";
# modules = [
# ./hosts/nixos/hardware-configuration.nix
# ./configuration.nix
# inputs.home-manager.nixosModules.default
# ];
# };
# };
};
}