flake: cleanup and add hostname definition

This commit is contained in:
wo2wz 2025-10-19 18:39:07 -04:00
parent 2e6cf2c456
commit 0ccba9602d
5 changed files with 20 additions and 26 deletions

View file

@ -1,11 +1,10 @@
{ config, pkgs, lib, ... }:
{ config, ... }:
{
imports = [
./boot.nix
./default-packages.nix
./locales.nix
./networking.nix
./nix.nix
./users.nix
];

View file

@ -1,5 +0,0 @@
{ hostName, config, ... }:
{
networking.hostName = "${hostName}";
}

View file

@ -1,9 +1,9 @@
{ hostName, config, ... }:
{ config, ... }:
{
users.users.wo2w = {
isNormalUser = true;
description = "${hostName}";
description = config.networking.hostName;
extraGroups = [ "networkmanager" "wheel" ];
# make new user logins (iso/vm/new machine) use a default password