mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 23:11:34 +01:00
Switch installer from openssh to tailscale
This commit is contained in:
parent
76b7146de3
commit
09f0de731a
1 changed files with 12 additions and 8 deletions
|
|
@ -12,6 +12,11 @@
|
||||||
../common.nix
|
../common.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
isoImage = {
|
||||||
|
edition = lib.mkForce "seb-minimal";
|
||||||
|
isoName = lib.mkForce "NixOS";
|
||||||
|
};
|
||||||
|
|
||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
|
@ -21,14 +26,13 @@
|
||||||
|
|
||||||
environment.systemPackages = [ inputs.disko.packages.${pkgs.system}.default ];
|
environment.systemPackages = [ inputs.disko.packages.${pkgs.system}.default ];
|
||||||
|
|
||||||
users.users.root.openssh.authorizedKeys.keys = [
|
services.openssh.enable = lib.mkForce false;
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGBUORYC3AvTPQmtUEApTa9DvHoJy4mjuQy8abSjCcDd seb@north"
|
services.tailscale = {
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINtHQDVdFkshpLANxS07Hy+yKoUp8YAPd+WaojJkFVZq seb@inspiron"
|
enable = true;
|
||||||
];
|
openFirewall = true;
|
||||||
|
extraUpFlags = [ "--ssh" ];
|
||||||
|
|
||||||
installer.cloneConfig = false;
|
# Ephemeral + not pre-approved
|
||||||
isoImage = {
|
authKeyFile = pkgs.writeText "tailscale-key-file" "tskey-auth-kaDD7BXvDE11CNTRL-9M4pUPEw4bEj7V4YzwFgaEE1MvzumcgM";
|
||||||
edition = lib.mkForce "seb-minimal";
|
|
||||||
isoName = lib.mkForce "NixOS";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue