Automatically set hostname
This commit is contained in:
parent
da18e8a3bb
commit
a4b8cd941d
7 changed files with 1 additions and 6 deletions
|
@ -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?
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
};
|
||||
|
||||
facter.reportPath = ./facter.json;
|
||||
networking.hostName = "warwick";
|
||||
system.stateVersion = "23.05";
|
||||
|
||||
systemd.network.networks."30-main-nic" = {
|
||||
|
|
|
@ -160,6 +160,7 @@
|
|||
};
|
||||
|
||||
networking = {
|
||||
hostName = name;
|
||||
useDHCP = lib.mkDefault true;
|
||||
networkmanager.unmanaged = lib.mkIf config.services.tailscale.enable ["tailscale0"];
|
||||
wireless.extraConfig = ''
|
||||
|
|
Loading…
Reference in a new issue