mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 18:22:54 +02:00
19 lines
367 B
Nix
19 lines
367 B
Nix
let
|
|
sources = import ./nix/sources.nix;
|
|
pkgs = import sources.nixpkgs {};
|
|
hcloud = pkgs.callPackage nix/hcloud.nix {};
|
|
|
|
isMacOS = builtins.match ".*-darwin" pkgs.stdenv.hostPlatform.system != null;
|
|
in pkgs.mkShell rec {
|
|
name = "nix-infra-machine";
|
|
|
|
buildInputs = with pkgs; [
|
|
hcloud
|
|
] ++ (if !isMacOS then [
|
|
] else []);
|
|
|
|
shellHook = ''
|
|
|
|
'';
|
|
}
|