aboutsummaryrefslogtreecommitdiff
path: root/hosts/jupiter
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-06-18 07:28:37 -0500
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-06-18 07:28:37 -0500
commit7470bf8571a6f20ac246fcef3a7b25e44abc53ac (patch)
tree3caa588df6b8effbe057873d2bcef1332842e98f /hosts/jupiter
parent0bb90277ddeb01e209d55e6c88aa0e868591bf8f (diff)
smb
Diffstat (limited to 'hosts/jupiter')
-rw-r--r--hosts/jupiter/minecraft.nix11
-rw-r--r--hosts/jupiter/samba.nix68
-rw-r--r--hosts/jupiter/system.nix4
3 files changed, 80 insertions, 3 deletions
diff --git a/hosts/jupiter/minecraft.nix b/hosts/jupiter/minecraft.nix
index f4a6b2a..1a9ff6b 100644
--- a/hosts/jupiter/minecraft.nix
+++ b/hosts/jupiter/minecraft.nix
@@ -1,12 +1,17 @@
-{
+{config, ...}: {
networking.firewall.allowedUDPPorts = [19132];
virtualisation.oci-containers.containers = {
"Minecraft" = {
environment = {
EULA = "TRUE";
+ EMIT_SERVER_TELEMETRY = "true";
+
SERVER_NAME = "YServer";
- TZ = "America/Chicago";
- VERSION = "LATEST";
+ TZ = config.time.timeZone;
+ VERSION = "1.21.81.2";
+ CONTENT_LOG_FILE_ENABLED = "true";
+ TEXTUREPACK_REQUIRED = "true";
+
ALLOW_CHEATS = "false";
DIFFICULTY = "1";
};
diff --git a/hosts/jupiter/samba.nix b/hosts/jupiter/samba.nix
new file mode 100644
index 0000000..7897e52
--- /dev/null
+++ b/hosts/jupiter/samba.nix
@@ -0,0 +1,68 @@
+{
+ services.samba = {
+ enable = true;
+ openFirewall = true;
+ settings = {
+ global = {
+ "workgroup" = "WORKGROUP";
+ "server string" = "brain2.0";
+
+ "security" = "user";
+ "map to guest" = "bad user";
+ "guest account" = "nobody";
+
+ "bind interfaces only" = "no";
+ "interfaces" = "lo wlp2s0";
+
+ # disable printing
+ "load printers" = "no";
+ "printing" = "bsd";
+ "printcap name" = "/dev/null";
+ "disable spoolss" = "yes";
+ };
+
+ "brain2.0" = {
+ comment = "";
+ path = "/srv/brain";
+ browseable = "yes";
+ "guest ok" = "yes";
+ "read only" = "yes";
+ "create mask" = "0644";
+ "directory mask" = "0755";
+
+ "write list" = "";
+ "valid users" = "@users, guest";
+
+ # Hide guest-editable dirs
+ "veto files" = "/notes/worldbuilding/";
+ };
+
+ "brain2.0-admin" = {
+ comment = "";
+ path = "/srv/brain";
+ browseable = "yes";
+ "guest ok" = "no";
+ "valid users" = "collin";
+ "create mask" = "0644";
+ "directory mask" = "0755";
+ };
+
+ "brain2.0-worldbuilding" = {
+ comment = "";
+ path = "/srv/brain/notes/worldbuilding";
+ browseable = "yes";
+ "guest ok" = "yes";
+ "read only" = "no";
+ "create mask" = "0664";
+ "directory mask" = "0775";
+ "force create mode" = "0664";
+ "force directory mode" = "0775";
+
+ "write list" = "@users, guest";
+ "valid users" = "@users, guest";
+
+ "delete readonly" = "no"; # prevent deletion of the directory
+ };
+ };
+ };
+}
diff --git a/hosts/jupiter/system.nix b/hosts/jupiter/system.nix
index cb59c1b..b2d8d20 100644
--- a/hosts/jupiter/system.nix
+++ b/hosts/jupiter/system.nix
@@ -2,12 +2,16 @@
imports = [
inputs.disko.nixosModules.disko
./disks.nix
+
./minecraft.nix
+ ./samba.nix
inputs.nixos-facter-modules.nixosModules.facter
{facter.reportPath = ./facter.json;}
];
+ time.timeZone = "America/Chicago";
+
systemd.network.wait-online.enable = false; # fix for weird wifi issue
system.stateVersion = "25.05";