feat: infinitely expansible microvms

This commit is contained in:
Nick 2025-12-09 03:46:57 -06:00
parent a92229390e
commit 4c767d369f
55 changed files with 1089 additions and 1015 deletions

View file

@ -8,4 +8,19 @@ let
in
{
imports = importList;
services = {
samba = {
enable = true;
};
};
networking = {
firewall = {
allowedTCPPorts = [
445
];
};
};
}

View file

@ -5,7 +5,6 @@
let
inherit (flake.config.services) instances;
inherit (flake.config.people) user0;
service = instances.samba;
jellyfin = instances.jellyfin;
in
{
@ -14,7 +13,6 @@ in
services = {
samba = {
# package = pkgs.samba4Full;
enable = true;
openFirewall = true;
settings = {
"storage" = {
@ -46,12 +44,4 @@ in
systemd.tmpfiles.rules = [
"d /mnt/transfer 2775 ${user0} users -"
];
networking = {
firewall = {
allowedTCPPorts = [
service.ports.port0
];
};
};
}

View file

@ -3,16 +3,13 @@
...
}:
let
inherit (flake.config.services) instances;
inherit (flake.config.people) user0;
service = instances.samba;
in
{
# If you ever need to start fresh, you need to add yourself to the Samba users database:
# sudo smbpasswd -a username
services = {
samba = {
enable = true;
openFirewall = true;
settings = {
"storage" = {
@ -27,12 +24,4 @@ in
};
};
};
networking = {
firewall = {
allowedTCPPorts = [
service.ports.port0
];
};
};
}