flake: cleanup and add hostname definition
This commit is contained in:
parent
2e6cf2c456
commit
0ccba9602d
5 changed files with 20 additions and 26 deletions
|
|
@ -1,11 +1,10 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./boot.nix
|
||||
./default-packages.nix
|
||||
./locales.nix
|
||||
./networking.nix
|
||||
./nix.nix
|
||||
./users.nix
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
{ hostName, config, ... }:
|
||||
|
||||
{
|
||||
networking.hostName = "${hostName}";
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue