forked from nyanloutre/nixos-config
LoutreOS: LUN Steam
This commit is contained in:
parent
b6c1b4cbf4
commit
42dd305fdb
@ -67,11 +67,6 @@
|
|||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/exports/steam" =
|
|
||||||
{ device = "loutrepool/steam";
|
|
||||||
fsType = "zfs";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/var/lib/syncthing" =
|
fileSystems."/var/lib/syncthing" =
|
||||||
{ device = "loutrepool/var/syncthing";
|
{ device = "loutrepool/var/syncthing";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
|
@ -62,7 +62,6 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
exports = ''
|
exports = ''
|
||||||
/mnt/medias 10.30.0.0/16(ro,no_root_squash)
|
/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)
|
/var/lib/minecraft 10.30.0.0/16(rw,no_root_squash)
|
||||||
'';
|
'';
|
||||||
statdPort = 4000;
|
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" ];
|
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" );
|
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.internalInterfaces = [ "wg0" ];
|
||||||
nat.internalIPs = [ "192.168.20.0/24" ];
|
nat.internalIPs = [ "192.168.20.0/24" ];
|
||||||
|
|
||||||
|
firewall.interfaces.eno2.allowedTCPPorts = [
|
||||||
|
3260
|
||||||
|
];
|
||||||
|
|
||||||
firewall.allowedTCPPorts = [
|
firewall.allowedTCPPorts = [
|
||||||
8448 # Matrix federation
|
8448 # Matrix federation
|
||||||
20 21 # FTP
|
20 21 # FTP
|
||||||
|
Loading…
Reference in New Issue
Block a user