2024-05-12 21:09:08 +00:00
|
|
|
{ config, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
username = config.networking.hostName;
|
|
|
|
in
|
2024-04-06 09:54:34 +00:00
|
|
|
{
|
2024-05-20 17:11:12 +00:00
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
./disko.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
# Locale service discovery and mDNS
|
|
|
|
services.avahi.enable = true;
|
2024-04-10 10:03:23 +00:00
|
|
|
|
|
|
|
services.xserver.enable = true;
|
|
|
|
services.xserver.desktopManager.gnome.enable = true;
|
|
|
|
services.xserver.displayManager.gdm.enable = true;
|
|
|
|
# Disable the default gnome apps to speed up deployment
|
|
|
|
services.gnome.core-utilities.enable = false;
|
2024-05-12 21:09:08 +00:00
|
|
|
|
|
|
|
# Enable automatic login for the user.
|
|
|
|
services.displayManager.autoLogin = {
|
|
|
|
enable = true;
|
|
|
|
user = username;
|
|
|
|
};
|
|
|
|
|
|
|
|
users.users.${username} = {
|
|
|
|
initialPassword = username;
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [
|
|
|
|
"wheel"
|
|
|
|
"networkmanager"
|
|
|
|
"video"
|
|
|
|
"audio"
|
|
|
|
"input"
|
|
|
|
"dialout"
|
|
|
|
"disk"
|
|
|
|
];
|
|
|
|
uid = 1000;
|
2024-05-12 22:09:24 +00:00
|
|
|
openssh.authorizedKeys.keys = config.users.users.root.openssh.authorizedKeys.keys;
|
2024-05-12 21:09:08 +00:00
|
|
|
};
|
2024-04-06 10:34:49 +00:00
|
|
|
}
|