diff --git a/hosts/arrakis/default.nix b/hosts/arrakis/default.nix index c003706..1130111 100644 --- a/hosts/arrakis/default.nix +++ b/hosts/arrakis/default.nix @@ -35,6 +35,12 @@ share = "media"; mountPoint = "/mnt/media"; } + { + # yolo VM's /home/naps62 (share defined in hosts/yolo/default.nix). + server = "10.7.10.2"; + share = "home"; + mountPoint = "/home/naps62/yolo"; + } ]; boot.kernelParams = [ diff --git a/hosts/konishi/default.nix b/hosts/konishi/default.nix index a294364..fb9f4d7 100644 --- a/hosts/konishi/default.nix +++ b/hosts/konishi/default.nix @@ -34,6 +34,12 @@ share = "media"; mountPoint = "/mnt/media"; } + { + # yolo VM's /home/naps62 (share defined in hosts/yolo/default.nix). + server = "10.7.10.2"; + share = "home"; + mountPoint = "/home/naps62/yolo"; + } ]; # Arm Wake-on-LAN (magic packet) on the Intel igc NIC and re-apply it on every diff --git a/hosts/yolo/default.nix b/hosts/yolo/default.nix index e02e193..214d910 100644 --- a/hosts/yolo/default.nix +++ b/hosts/yolo/default.nix @@ -58,6 +58,29 @@ # virtio drivers; the agent itself is a separate service. qemuGuest.enable = true; + # Exposes /home/naps62 to arrakis/konishi (custom.smbMounts on both, mounted + # at ~/yolo). Guest auth — the home dir holds SSH keys and credentials, so + # the only guard is `hosts allow` limiting clients to the private nets. + # Clients address this VM as 10.7.10.2; keep that DHCP lease reserved. + samba = { + enable = true; + openFirewall = true; + settings = { + global = { + "map to guest" = "bad user"; + "hosts allow" = "10.6.0.0/16 10.7.0.0/16 127.0.0.1"; + "hosts deny" = "ALL"; + }; + home = { + path = "/home/naps62"; + "read only" = "no"; + "guest ok" = "yes"; + "force user" = "naps62"; + "force group" = "users"; + }; + }; + }; + # No physical seat: Sunshine is a user service and cannot capture until a # graphical session exists, so a cold boot must reach one unattended. No # hyprlock on start (unlike konishi) — nobody could type the password in.