LoutreOS: LUN Steam
This commit is contained in:
parent
b6c1b4cbf4
commit
42dd305fdb
@ -67,11 +67,6 @@
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/exports/steam" =
|
||||
{ device = "loutrepool/steam";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/var/lib/syncthing" =
|
||||
{ device = "loutrepool/var/syncthing";
|
||||
fsType = "zfs";
|
||||
|
@ -62,7 +62,6 @@ in
|
||||
enable = true;
|
||||
exports = ''
|
||||
/mnt/medias 10.30.0.0/16(ro,no_root_squash)
|
||||
/exports/steam 10.30.0.0/16(rw,async,no_root_squash)
|
||||
/var/lib/minecraft 10.30.0.0/16(rw,no_root_squash)
|
||||
'';
|
||||
statdPort = 4000;
|
||||
@ -294,6 +293,17 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
systemd.packages = with pkgs; [
|
||||
tgt
|
||||
];
|
||||
|
||||
environment.etc."tgt/targets.conf".text = ''
|
||||
<target iqn.2019-11.nyanlout.re:steam>
|
||||
backing-store /dev/zvol/loutrepool/steam-lun
|
||||
initiator-address 10.30.50.3
|
||||
</target>
|
||||
'';
|
||||
|
||||
users.groups.acme.members = [ "matrix-synapse" ];
|
||||
|
||||
security.pam.services.sshd.text = pkgs.lib.mkDefault( pkgs.lib.mkAfter "session optional ${pkgs.pam}/lib/security/pam_exec.so seteuid ${login_mail_alert}/bin/mail_alert.sh" );
|
||||
@ -317,6 +327,10 @@ in
|
||||
nat.internalInterfaces = [ "wg0" ];
|
||||
nat.internalIPs = [ "192.168.20.0/24" ];
|
||||
|
||||
firewall.interfaces.eno2.allowedTCPPorts = [
|
||||
3260
|
||||
];
|
||||
|
||||
firewall.allowedTCPPorts = [
|
||||
8448 # Matrix federation
|
||||
20 21 # FTP
|
||||
|
Loading…
Reference in New Issue
Block a user