fix the hostname

This commit is contained in:
Ray Andrew 2025-03-03 23:14:29 -06:00
parent 9c6cd2b903
commit 2daee86b6a
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,3 @@
# This is your system's configuration file.
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
{ {
inputs, inputs,
lib, lib,
@ -9,6 +7,7 @@
dots, dots,
user, user,
hm, hm,
host,
... ...
}: { }: {
# You can import other NixOS modules here # You can import other NixOS modules here
@ -31,7 +30,6 @@
bluetooth.enable = true; bluetooth.enable = true;
}; };
networking.hostName = "pickwick";
time.timeZone = "America/Chicago"; time.timeZone = "America/Chicago";
users.users = { users.users = {
@ -39,7 +37,7 @@
initialPassword = "abc123"; initialPassword = "abc123";
isNormalUser = true; isNormalUser = true;
openssh.authorizedKeys.keys = []; openssh.authorizedKeys.keys = [];
extraGroups = ["wheel" "video" "audio" "networkmanager"]; extraGroups = ["wheel" "video" "audio" "networkmanager"];
}; };
}; };
} }

View file

@ -4,6 +4,7 @@
config, config,
pkgs, pkgs,
system, system,
host,
... ...
}: { }: {
imports = [ imports = [
@ -34,6 +35,7 @@
}; };
# networking # networking
networking.hostName = host;
networking.hostId = builtins.substring 0 8 (builtins.hashString "md5" config.networking.hostName); networking.hostId = builtins.substring 0 8 (builtins.hashString "md5" config.networking.hostName);
networking.networkmanager.enable = true; networking.networkmanager.enable = true;