2023-01-12 21:26:57 +00:00
|
|
|
{ pkgs, modulesPath, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
|
|
|
];
|
|
|
|
|
|
|
|
# flakes are essensial
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
|
2023-01-12 21:35:12 +00:00
|
|
|
system.stateVersion = "22.11";
|
2023-01-12 21:26:57 +00:00
|
|
|
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
permitRootLogin = "prohibit-password";
|
|
|
|
};
|
|
|
|
|
|
|
|
users.users.root = {
|
|
|
|
initialHashedPassword = "";
|
|
|
|
|
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
# personal one
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINQHZQA1ovXw4DWDUD7ivh4eW0lnCsHVvSvBCrlAWN/b Hetzner NixOS Tester"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
environment.systemPackages = [
|
|
|
|
# for flakes
|
|
|
|
pkgs.git
|
|
|
|
# useful tools
|
|
|
|
pkgs.ncdu_2
|
|
|
|
pkgs.htop
|
|
|
|
pkgs.nano
|
2023-01-13 18:47:00 +00:00
|
|
|
pkgs.nmap
|
2023-01-12 21:26:57 +00:00
|
|
|
];
|
|
|
|
}
|