feat: uncucked server

This commit is contained in:
Nick 2025-12-10 15:58:39 -06:00
parent 8649008c93
commit d32ece51bf
22 changed files with 273 additions and 112 deletions

View file

@ -1,7 +1,5 @@
{
config,
flake,
pkgs,
...
}:
let
@ -15,11 +13,12 @@ in
user,
ip,
mac,
ssh,
userMac,
package,
}:
{
microvm.vms.${serviceCfg.name} = {
microvm.vms."${serviceCfg.name}" = {
autostart = true;
config = {
system.stateVersion = "25.05";
@ -66,6 +65,18 @@ in
id = "vm-ws-${user}";
mac = mac;
}
{
type = "user";
id = "vmuser-web";
mac = userMac;
}
];
forwardPorts = [
{
from = "host";
host.port = ssh;
guest.port = 22;
}
];
shares = [
{