35 lines
634 B
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);
|
|
};
|
|
}
|