feat: add tailscale to iso

This commit is contained in:
2024-08-14 18:29:11 +08:00
parent da97bf48d1
commit 27b7ff1c42
2 changed files with 10 additions and 8 deletions

View File

@@ -18,11 +18,8 @@
};
};
outputs = { flake-utils,nixpkgs, nixos-generators, disko, ... }: let
nodes = ["premhome-falcon-1" "premhome-falcon-2"];
in {
packages = {
x86_64-linux = {
outputs = { flake-utils,nixpkgs, nixos-generators, disko, ... }: {
packages.x86_64-linux = {
create-vm = let
pkgs = import nixpkgs { system = "x86_64-linux"; };
script-name = "create-vm";
@@ -36,7 +33,6 @@
paths = [ script ] ++ buildInputs;
nativeBuildInputs = with pkgs; [makeWrapper];
postBuild = "wrapProgram $out/bin/${script-name} --prefix PATH : $out/bin";
};
};
};
} // flake-utils.lib.eachDefaultSystem (system:
@@ -52,7 +48,7 @@
];
};
};
packages.${system} = {
packages = {
generate-iso = nixos-generators.nixosGenerate {
format = "iso";
system = "x86_64-linux";