nix/os/devices/steveej-t480s-work: attempt to enable pre-boot SSH

This commit is contained in:
steveej 2018-11-12 20:20:36 +01:00
parent 69034f287c
commit 4e01df65e0
4 changed files with 158 additions and 1 deletions

View file

@ -1,8 +1,12 @@
{ pkgs
, lib
, config
, ... }:
{
let
keys = import ../../../variables/keys.nix;
in {
# TASK: new device
networking.hostName = "steveej-t480s-work"; # Define your hostname.
@ -47,4 +51,15 @@
virtualbox.host.addNetworkInterface = true;
docker.enable = true;
};
boot.initrd.network = {
enable = true;
useDHCP = true;
udhcpc.extraArgs = [ "-x hostname:${config.networking.hostName}" ];
ssh = {
enable = true;
authorizedKeys = keys.users.steveej.openssh;
};
};
}