nixconf/systems/riscv64-linux/cmb2/default.nix

35 lines
634 B
Nix

{
config,
pkgs,
inputs,
modulesPath,
lib,
...
}:
{
imports = [
"${inputs.nixos-hardware}/starfive/visionfive/v2/sd-image-installer.nix"
];
# Localization
time.timeZone = "Etc/UTC";
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
settings = {
PermitEmptyPasswords = false;
};
};
programs.mosh.enable = true;
# Shared username is nixos.
# SSH allows pubkey auth only.
# Sudo is passwordless once logged in.
users.users.nixos = {
openssh.authorizedKeys.keyFiles = (map
(name: "${inputs.self}/pubkeys/${name}.keys") config.gg.users.admins);
};
}