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,7 +1,14 @@
{ ... }:
{
disabledModules = [
"system/boot/initrd-network.nix"
];
imports = [
../../modules/initrd-network.nix
../../profiles/common/configuration.nix
../../profiles/graphical/configuration.nix
../../modules/encryptedDisk.nix

View file

@ -7,6 +7,12 @@ let
"aes_x86_64"
"nvme"
"nvme_core"
"pcieport"
"thunderbolt"
"e1000e"
"xhci_pci"
"hxci_hcd"
];
in

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;
};
};
}