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







                                                               
                                                               


                  
                  

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

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