Files
infra/nixos/modules/base.nix
T
2026-05-29 16:46:23 +03:00

52 lines
1015 B
Nix

{ pkgs, ... }:
{
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
time.timeZone = "Europe/Moscow";
i18n.defaultLocale = "ru_RU.UTF-8";
i18n.supportedLocales = [
"ru_RU.UTF-8/UTF-8"
"en_US.UTF-8/UTF-8"
];
users.users.ada = {
isNormalUser = true;
shell = pkgs.bashInteractive;
extraGroups = [
"wheel"
"docker"
"libvirtd"
];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIWNsUQmppB6cQccXX1ZaBbFIcmM6RmghsTVbG9TgoZB ada@ada-x1"
];
};
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = "no";
PubkeyAuthentication = true;
};
};
environment.systemPackages = with pkgs; [
git
restic
resticprofile
];
systemd.tmpfiles.rules = [
"d /opt/services 0755 ada users - -"
"d /opt/data 0755 ada users - -"
"d /opt/configs 0755 ada users - -"
];
}