Move hostname config

This commit is contained in:
Fern Garden 2025-07-09 09:32:39 +08:00
parent 7c04159aa9
commit 13e52cb27e

View file

@ -1,6 +1,7 @@
{ {
pkgs, pkgs,
lib, lib,
hostname,
user, user,
... ...
}: }:
@ -48,6 +49,9 @@ with lib;
# Enable networking. # Enable networking.
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
# Set hostname
networking.hostName = hostname;
# Define a user account. # Define a user account.
users.users.${user} = { users.users.${user} = {
isNormalUser = true; isNormalUser = true;