Automatically set hostname

This commit is contained in:
Pim Kunis 2024-12-01 17:03:08 +01:00
parent da18e8a3bb
commit a4b8cd941d
7 changed files with 1 additions and 6 deletions

View file

@ -2,7 +2,6 @@
config = {
facter.reportPath = ./facter.json;
# TODO: should set this automatically
networking.hostName = "atlas";
system.stateVersion = "23.05";
users.users.root.openssh.authorizedKeys.keys = config.pim.ssh.keys.pim ++ config.pim.ssh.keys.niels;
# TODO: set this as a default?

View file

@ -10,7 +10,6 @@
};
facter.reportPath = ./facter.json;
networking.hostName = "gamepc";
home-manager.users.pim.imports = [./pim.home.nix];
programs.steam.enable = true;
system.stateVersion = "24.05";

View file

@ -1,7 +1,6 @@
{config, ...}: {
config = {
facter.reportPath = ./facter.json;
networking.hostName = "jefke";
system.stateVersion = "23.05";
users.users.root.openssh.authorizedKeys.keys = config.pim.ssh.keys.pim ++ config.pim.ssh.keys.niels;
sops.age.keyFile = "/root/.config/sops/age/keys.txt";

View file

@ -5,7 +5,6 @@
}: {
config = {
facter.reportPath = ./facter.json;
networking.hostName = "lewis";
system.stateVersion = "23.05";
users.users.root.openssh.authorizedKeys.keys = config.pim.ssh.keys.pim ++ config.pim.ssh.keys.niels;

View file

@ -35,7 +35,6 @@
facter.reportPath = ./facter.json;
home-manager.users.pim.imports = [./pim.home.nix];
networking.hostName = "sue";
nix.settings.trusted-users = ["pim"];
system.stateVersion = "23.05";

View file

@ -14,7 +14,6 @@
};
facter.reportPath = ./facter.json;
networking.hostName = "warwick";
system.stateVersion = "23.05";
systemd.network.networks."30-main-nic" = {

View file

@ -160,6 +160,7 @@
};
networking = {
hostName = name;
useDHCP = lib.mkDefault true;
networkmanager.unmanaged = lib.mkIf config.services.tailscale.enable ["tailscale0"];
wireless.extraConfig = ''