nix-config/hosts/leoncloud/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.1 KiB
Nix
Raw Normal View History

2022-09-05 22:17:11 +02:00
{ zentralwerk, config, pkgs, ... }:
let
netConfig = zentralwerk.lib.config.site.net.serv;
mac = {
serv = "e2:e9:bb:f4:4a:fe";
pub = "e2:e9:bb:f4:4a:ff";
};
in
{
microvm = {
mem = 1024;
};
c3d2.deployment = {
server = "server9";
mounts = [ "etc" "home" "var"];
autoNetSetup = true;
2022-09-05 22:17:11 +02:00
};
networking = {
hostName = "leoncloud";
firewall.enable = true;
};
security.sudo = {
enable = true;
wheelNeedsPassword = false;
};
c3d2.hq.statistics.enable = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
wget vim python3Full nmap htop wireguard-tools
];
users.users.leon = {
isNormalUser = true;
extraGroups = [ "wheel" ];
createHome = true;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM2zpmWA3Z9zshWaU8k1SWyJnbAyasOu9pV+9BvTY0XE leon@¯\_()_/¯"
];
};
networking.firewall = {
allowedTCPPorts = [ 80 443 ];
allowedUDPPorts = [ ];
};
system.stateVersion = "22.05";
}