nix-config/hosts/leon/default.nix

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

45 lines
1.3 KiB
Nix
Raw Normal View History

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