about summary refs log blame commit diff stats
path: root/flake/nixosConfigurations/default.nix
blob: f2110eb9a210b4a3e353fb4bbe36ff34b582a164 (plain) (tree)
1
2
3
4
5
6
7
8
9
 
         
                   

                     
     
      
                        
                                              





                                       
      
                                                                     

                                     

                                                                          
{
  system,
  pkgs,
  nixpkgs_as_input,
  # configs
  defaultModules,
  defaultSpecialArgs,
  ...
}: let
  generateHost = name: {
    name = "${name}";
    value = nixpkgs_as_input.lib.nixosSystem {
      inherit system pkgs;
      specialArgs = defaultSpecialArgs;
      modules =
        [
          ../../hosts/${name}
        ]
        ++ defaultModules;
    };
  };
  # FIXME: These need to stay in this position for the install script
  hosts = ["tiamat" "apzu"];
  inactiveHosts = ["mammun" "lahmu"];

  generatedHosts = builtins.listToAttrs (builtins.map generateHost hosts);
in
  generatedHosts