mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-19 02:52:56 +02:00
Add nix-infra-machine
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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 = ''
|
||||
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user