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,
lib,
@ -9,6 +7,7 @@
dots,
user,
hm,
host,
...
}: {
# You can import other NixOS modules here
@ -31,7 +30,6 @@
bluetooth.enable = true;
};
networking.hostName = "pickwick";
time.timeZone = "America/Chicago";
users.users = {

View file

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