nix/os/devices/CFB4ED74: update config

This commit is contained in:
steveej 2018-11-12 20:27:30 +01:00
parent 4e01df65e0
commit e28460c394
2 changed files with 17 additions and 2 deletions

View file

@ -3,5 +3,5 @@
}: }:
{ {
home-manager.users.steveej = import ../../../home-manager/configuration/graphical-fullblown.nix; home-manager.users.steveej = import ../../../home-manager/configuration/text-minimal.txt;
} }

View file

@ -1,8 +1,12 @@
{ pkgs { pkgs
, lib , lib
, config
, ... }: , ... }:
{ let
keys = import ../../../variables/keys.nix;
in {
# TASK: new device # TASK: new device
networking.hostName = "CFB4ED74"; # Define your hostname. networking.hostName = "CFB4ED74"; # Define your hostname.
@ -18,4 +22,15 @@
services.spice-vdagentd.enable = true; services.spice-vdagentd.enable = true;
services.qemuGuest.enable = true; services.qemuGuest.enable = true;
networking.useDHCP = true;
boot.initrd.network = {
enable = true;
udhcpc.extraArgs = [ "-x hostname:${config.networking.hostName}" ];
ssh = {
enable = true;
authorizedKeys = keys.users.steveej.openssh;
};
};
} }