generic nixosConfigurations
This commit is contained in:
parent
d4b83fd5a4
commit
0431b86525
1 changed files with 39 additions and 24 deletions
63
flake.nix
63
flake.nix
|
@ -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
|
||||
];
|
||||
};
|
||||
nixos = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs; };
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./hosts/nixos/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"; }
|
||||
];
|
||||
# {
|
||||
# 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
|
||||
# ];
|
||||
# };
|
||||
# };
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue