feat: tweaked some microvms

This commit is contained in:
Nick 2025-11-27 05:12:15 -06:00
parent 1f43844e90
commit cb11da0008
6 changed files with 47 additions and 20 deletions

View file

@ -1,6 +1,7 @@
{
config,
flake,
pkgs,
...
}:
let
@ -82,7 +83,7 @@ in
systemd.services.systemd-networkd.wantedBy = [ "multi-user.target" ];
microvm = {
vcpu = 1;
vcpu = 2;
mem = 1024 * 3;
hypervisor = "qemu";
interfaces = [
@ -131,6 +132,14 @@ in
}
];
};
environment.systemPackages = builtins.attrValues {
inherit (pkgs)
yazi
bottom
trashy
fastfetch
;
};
};
};
};

View file

@ -394,10 +394,17 @@ in
];
};
environment.systemPackages = [ fedifetcherPython ];
environment.systemPackages = builtins.attrValues {
inherit
fedifetcherPython
;
inherit (pkgs)
bottom
;
};
microvm = {
vcpu = 4;
vcpu = 2;
mem = 1024 * 6;
hypervisor = "qemu";
interfaces = [

View file

@ -83,8 +83,8 @@ in
systemd.services.systemd-networkd.wantedBy = [ "multi-user.target" ];
microvm = {
vcpu = 1;
mem = 1024;
vcpu = 2;
mem = 1024 * 3;
hypervisor = "qemu";
interfaces = [
{
@ -126,6 +126,15 @@ in
}
];
};
environment.systemPackages = builtins.attrValues {
inherit (pkgs)
yazi
bottom
trashy
fastfetch
;
};
};
};
};

View file

@ -59,7 +59,7 @@ in
microvm = {
vcpu = 2;
mem = 3072;
mem = 1024;
hypervisor = "qemu";
interfaces = [
{

View file

@ -29,8 +29,8 @@ in
privateKeyFile = "/run/secrets/wireguard-pass";
peers = [
{
publicKey = "SFesR+3u5/vyQGeaCSREjs4m2WznwFlWAQ9CE3QSnRg=";
endpoint = "104.254.95.98:${builtins.toString torrentPort}";
publicKey = "QPfiwJQmt5VLEOh1ufLbi1lj6LUnwQY0tgDSh3pWx1k=";
endpoint = "185.111.110.1:${builtins.toString torrentPort}";
allowedIPs = [
"0.0.0.0/0"
"::/0"
@ -76,10 +76,9 @@ in
Port = torrentPort;
MaxConnectionsPerTorrent = -1;
MaxUploads = -1;
MaxUploadsPerTorrent = -1;
MaxActiveDownloads = -1;
MaxActiveUploads = -1;
MaxActiveTorrents = -1;
MaxActiveDownloads = 999;
MaxActiveUploads = 999;
MaxActiveTorrents = 999;
};
};
@ -133,7 +132,7 @@ in
};
microvm = {
vcpu = 1;
vcpu = 4;
mem = 1024 * 1;
hypervisor = "qemu";
@ -180,10 +179,13 @@ in
];
};
environment.systemPackages = with pkgs; [
wireguard-tools
speedtest-go
];
environment.systemPackages = builtins.attrValues {
inherit (pkgs)
wireguard-tools
speedtest-go
bottom
;
};
};
};