nix-config/hosts/leon/default.nix

45 lines
1.3 KiB
Nix

{ zentralwerk, config, pkgs, ... }:
let
netConfig = zentralwerk.lib.config.site.net.serv;
in
{
microvm = {
mem = 2048;
};
c3d2.deployment = {
server = "nomad";
mounts = [ "etc" "home" "var"];
mountBase = "/glusterfs/fast/microvms/${config.networking.hostName}";
};
networking = {
hostName = "leon";
firewall.enable = true;
};
security.sudo = {
enable = true;
wheelNeedsPassword = false;
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
wget vim python3Full nmap htop
];
users.users.leon = {
isNormalUser = true;
extraGroups = [ "wheel" ];
createHome = true;
openssh.authorizedKeys.keys = [
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDJf/SwJwNs+BBKC2DhlMajlbJ95oB5GkPbnzc3CARBeX9jn9DRk9yLRcKdNtLaxwuFctelRDlCHRpsjKqv78rEsUbs3ZID2I29lW0nozUcMcNHy4OX9eep8D6UjZibGKnm3G1X7bkUjukCFbBlQp97CnqUH06DCGMMubQJ4gOpJ08G5jFEDdZQmaW2ZHSpOK58ilxClkYxR/Gqr3ILU3OS91auzTcplKvg96Pd3k0BJRZR02zkPW/hx1oVLMCckTmi53DrJ9gyRSkO9IGR5Nhit5rrgSGD/G3IQGYYnU8puLoU7b4aqjlUhM0kO+csXowgoTc+i/k1gIIHdwd/tppu2KhTuD5FcSfGTciTX5Aw0swIOHs7e5yMlCNu3tPgxpOSYIuyuormnYHCXfEhsPbAhdCqZqZwenyt4T2pVyVB/RI0x+UcngH5NqGTb8NlvmEL9Ymxo8irUpB4f1t4WPob2man1J3pLiLd14JjDwpuoIuC4ZSAXPlwPqcWaUT2hG8= leon@¯\_()_/¯
];
};
system.stateVersion = "22.05";
}