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