nix: succefully generated raspberry pi 4 image (hydrogen)

This commit is contained in:
Primrose 2024-07-18 21:46:55 +02:00
parent d272d8ad2d
commit cadda2e104
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
5 changed files with 62 additions and 8 deletions

View file

@ -0,0 +1,42 @@
{ config, ... }:
{
users.groups.leana = { };
users.users.leana = {
isNormalUser = true;
home = "/home/leana";
description = "Leana";
group = "leana";
extraGroups = [
"wheel"
"docker"
"networkmanager"
];
openssh.authorizedKeys.keys = config.users.users.root.openssh.authorizedKeys.keys;
};
networking.wireless.enable = false;
time.timeZone = "Europe/Paris";
i18n = {
defaultLocale = "en_US.UTF-8";
supportedLocales = [
"en_US.UTF-8/UTF-8"
"fr_FR.UTF-8/UTF-8"
"zh_TW.UTF-8/UTF-8"
];
};
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "prohibit-password";
PasswordAuthentication = false;
};
ports = [ 22 ];
};
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBt+MINzxBF8uyFIuz/UvMZe9Ml+qxU0hxxi7UAmUzpc leana@bismuth"
];
}