aboutsummaryrefslogblamecommitdiff
path: root/scripts/default.nix
blob: bf91760ca4fefc60ca993c154fdad1aa16c4ff5d (plain) (tree)
1
2
3
4
5
6
7
8
9



         
       


                                                 
                                                    




                                                               
                




                                                                      
            


                                                                   
{
  pkgs,
  system,
  inputs,
  self,
}:
let
  common = import ./common.nix { inherit pkgs; };
  infra = import ./infra.nix { inherit self pkgs; };
  darwin = import ./darwin.nix { inherit pkgs system inputs; };
  linux = import ./linux.nix { inherit pkgs system inputs; };
in
{
  common = common;
  infra = infra;
  darwin = if pkgs.lib.hasSuffix "darwin" system then darwin else [ ];
  linux = if pkgs.lib.hasSuffix "linux" system then linux else [ ];

  all =
    common
    ++ infra
    ++ (if pkgs.lib.hasSuffix "darwin" system then darwin else [ ])
    ++ (if pkgs.lib.hasSuffix "linux" system then linux else [ ]);
}