Set hostname at entrypoint

This commit is contained in:
Henrik Lissner 2020-01-12 18:28:02 -05:00
parent 4d1817a499
commit f6c989d9ff
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
5 changed files with 2 additions and 5 deletions

View file

@ -3,6 +3,8 @@
device: device:
{ pkgs, options, lib, config, ... }: { pkgs, options, lib, config, ... }:
{ {
networking.hostName = device;
imports = [ imports = [
<nixpkgs/nixos/modules/installer/scan/not-detected.nix> <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
/etc/nixos/hardware-configuration.nix /etc/nixos/hardware-configuration.nix

View file

@ -12,8 +12,6 @@
<my/modules/shell/zsh.nix> <my/modules/shell/zsh.nix>
]; ];
networking.hostName = "aka";
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
time.timeZone = "America/Toronto"; time.timeZone = "America/Toronto";
} }

View file

@ -14,7 +14,6 @@
<my/modules/shell/zsh.nix> <my/modules/shell/zsh.nix>
]; ];
networking.hostName = "ao";
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
time.timeZone = "America/Toronto"; time.timeZone = "America/Toronto";

View file

@ -33,7 +33,6 @@
<my/modules/themes/aquanaut> <my/modules/themes/aquanaut>
]; ];
networking.hostName = "kuro";
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
time.timeZone = "America/Toronto"; time.timeZone = "America/Toronto";

View file

@ -37,7 +37,6 @@ in {
]; ];
theme.wallpaper = <my/assets/wallpapers/aquanaut.2560x1440.jpg>; theme.wallpaper = <my/assets/wallpapers/aquanaut.2560x1440.jpg>;
networking.hostName = "shiro";
networking.wireless.enable = true; networking.wireless.enable = true;
time.timeZone = "America/Toronto"; time.timeZone = "America/Toronto";