35 lines
		
	
	
		
			874 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			874 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  description = "NixOS System Config";
 | 
						|
  inputs = {
 | 
						|
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
 | 
						|
    nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
 | 
						|
    sops-nix.url = "github:Mic92/sops-nix";
 | 
						|
    sops-nix.inputs.nixpkgs.follows = "nixpkgs";
 | 
						|
  };
 | 
						|
  outputs = { self, nixpkgs, sops-nix, ... }@inputs:
 | 
						|
  let
 | 
						|
    nixos-x86_64-hosts = [
 | 
						|
      "g1"
 | 
						|
      "c1"
 | 
						|
    ];
 | 
						|
    nasp = (import ./modules/nasp {
 | 
						|
      lib = nixpkgs.lib;
 | 
						|
    });
 | 
						|
  in
 | 
						|
  {
 | 
						|
    nixosConfigurations = {
 | 
						|
    } // (builtins.listToAttrs (builtins.map (host: {
 | 
						|
      name = host;
 | 
						|
      value = nixpkgs.lib.nixosSystem {
 | 
						|
        system = "x86_64-linux";
 | 
						|
        specialArgs = { inherit inputs; };
 | 
						|
        modules = [
 | 
						|
          ./hosts/${host}/configuration.nix
 | 
						|
          nasp.nixosModules.main
 | 
						|
          sops-nix.nixosModules.sops
 | 
						|
        ];
 | 
						|
      };
 | 
						|
    }) nixos-x86_64-hosts));
 | 
						|
  };
 | 
						|
}
 |