rework installation template based on received feedback

This commit is contained in:
Jörg Thalheim
2024-07-21 21:16:07 +02:00
parent 05a28e596d
commit fabfba77cf
10 changed files with 193 additions and 234 deletions

View File

@@ -1,7 +1,28 @@
{ clan-core, ... }:
{ config, clan-core, ... }:
{
imports = [
# Enables the OpenSSH server for remote access
clan-core.clanModules.sshd
# Set a root password
clan-core.clanModules.root-password
clan-core.clanModules.user-password
];
# Locale service discovery and mDNS
services.avahi.enable = true;
# generate a random password for our user below
# can be read using `clan secrets get <machine-name>-user-password` command
clan.user-password.user = "user";
users.users.user = {
isNormalUser = true;
extraGroups = [
"wheel"
"networkmanager"
"video"
"input"
];
uid = 1000;
openssh.authorizedKeys.keys = config.users.users.root.openssh.authorizedKeys.keys;
};
}