Remove exoplasim

This commit is contained in:
Vili Sinervä 2025-06-06 00:53:08 +03:00
parent 200337812b
commit fa2ae3af1c
Signed by: Vili Sinervä
SSH key fingerprint: SHA256:FladqYjaE4scJY3Hi+gnShZ6ygnTJgixy0I6BAoHyos
2 changed files with 0 additions and 111 deletions

View file

@ -1,72 +0,0 @@
{
config,
pkgs,
lib,
...
}:
{
imports = [
../../shared/base.nix
../../shared/hardware/vm.nix
];
# Networking conf including WireGuard
networking = {
firewall.allowedUDPPorts = [ 51821 ];
wg-quick.interfaces = {
wg0 = {
address = [ "10.0.0.1/24" ];
privateKeyFile = "/root/wireguard-keys/privatekey";
listenPort = 51821;
peers = [
# {
# publicKey = "TODO";
# presharedKeyFile = "/root/wireguard-keys/psk";
# allowedIPs = [ "10.0.0.2/32" ];
# }
{
publicKey = "9FOmHXs0CmDlW61noS7DqhgH5GfQHzg8ZMasyNQACSc=";
allowedIPs = [ "10.0.0.2/32" ];
}
];
};
};
};
# User worker
users.users.worker = {
isNormalUser = true;
home = "/home/worker";
description = "ExoPlaSim Worker";
uid = 1001;
extraGroups = [ "networkmanager" ];
openssh.authorizedKeys.keys = config.users.users.root.openssh.authorizedKeys.keys ++ [
# TODO add user-specific key
];
};
users.groups.worker.gid = 1001;
system.autoUpgrade.allowReboot = lib.mkForce false;
programs.rust-motd = {
enable = true;
enableMotdInSSHD = true;
refreshInterval = "*:*:0/5";
settings = {
banner = {
color = "green";
command = ''
${pkgs.figlet}/bin/figlet "ExoPlaSim Worker";
${pkgs.coreutils-full}/bin/echo -e "$(${pkgs.procps}/bin/ps --User worker --user worker --forest --format start_time=STARTED,time=CPU_TIME,%cpu,%mem,comm)";
'';
};
uptime.prefix = "System has been running for";
filesystems = {
Main = "/";
};
memory.swap_pos = "beside";
};
};
}

View file

@ -1,39 +0,0 @@
{ lib, modulesPath, ... }:
{
system.stateVersion = "24.05";
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [
"uhci_hcd"
"ehci_pci"
"ahci"
"virtio_pci"
"virtio_scsi"
"sd_mod"
"sr_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/17b26343-39c9-4598-97c0-b43aab7ed3a0";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/9F45-5FDF";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}