mirror of
https://github.com/SebastianStork/nixos-installer.git
synced 2026-01-21 14:31:34 +01:00
Refactor
This commit is contained in:
parent
2e762023c8
commit
27346b6113
5 changed files with 38 additions and 93 deletions
29
configuration.nix
Normal file
29
configuration.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
nix.settings.experimental-features = [ "pipe-operators" ];
|
||||
|
||||
networking.hostName = "installer";
|
||||
|
||||
console.keyMap = "de-latin1-nodeadkeys";
|
||||
|
||||
services.openssh.enable = lib.mkForce false;
|
||||
|
||||
networking.wireless.enable = false;
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
environment.systemPackages = [ inputs.disko.packages.${pkgs.system}.default ];
|
||||
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
extraUpFlags = [ "--ssh" ];
|
||||
|
||||
# Ephemeral + not pre-approved
|
||||
authKeyFile = ./tailscale-auth-key.dec;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue