2023-01-25 11:48:44 +00:00
|
|
|
{ pkgs, modulesPath, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
|
|
|
];
|
|
|
|
|
|
|
|
# flakes are essensial
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
|
|
|
|
system.stateVersion = "22.11";
|
|
|
|
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
permitRootLogin = "prohibit-password";
|
|
|
|
};
|
|
|
|
|
|
|
|
users.users.root = {
|
|
|
|
initialHashedPassword = "";
|
|
|
|
|
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK6DjXTAxesXpQ65l659iAjzEb6VpRaWKSg4AXxifPw9 Skynet Admin"
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEHNLroAjCVR9Tx382cqdxPZ5KY32r/yoQH1mgsYNqpm Silver_Laptop_WSL_Deb"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2023-04-20 08:16:28 +00:00
|
|
|
networking = {
|
|
|
|
# explisitly stating this is good
|
|
|
|
defaultGateway = "193.1.99.65";
|
|
|
|
|
|
|
|
# cannot use our own it seems?
|
|
|
|
nameservers = [
|
|
|
|
# pulled these from eduroam to get up and running
|
|
|
|
"10.220.1.10"
|
|
|
|
"10.220.1.11"
|
|
|
|
"10.150.100.10"
|
|
|
|
"10.150.100.11"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2023-01-25 11:48:44 +00:00
|
|
|
environment.systemPackages = [
|
|
|
|
# for flakes
|
|
|
|
pkgs.git
|
|
|
|
# useful tools
|
|
|
|
pkgs.ncdu_2
|
|
|
|
pkgs.htop
|
|
|
|
pkgs.nano
|
|
|
|
pkgs.nmap
|
2023-04-19 19:42:00 +00:00
|
|
|
pkgs.bind
|
2023-01-25 11:48:44 +00:00
|
|
|
];
|
|
|
|
}
|