aboutsummaryrefslogtreecommitdiff
path: root/flake/scripts/default.nix
blob: 6170cd7d0eb47fc6061352edbc7ab7eb1a58745d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  pkgs,
  system,
  inputs,
}:
let
  common = import ./common.nix { inherit pkgs; };
  darwin = import ./darwin.nix { inherit pkgs system inputs; };
  remote = import ./remote.nix { inherit pkgs 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 [ ]);
}