nixos-config/config/services/iscsi.nix

17 lines
389 B
Nix
Raw Normal View History

2022-06-21 12:48:31 +00:00
{
config,
pkgs,
...
}: {
systemd.packages = [pkgs.tgt];
systemd.services."tgtd".wantedBy = ["multi-user.target"];
2022-06-20 18:15:47 +00:00
networking.firewall.interfaces."br0".allowedTCPPorts = [860 3260];
2022-06-20 20:11:25 +00:00
environment.etc."tgt/targets.conf".text = ''
default-driver iscsi
<target iqn.2022-06.rs.chir:rs.chir.int.nas.windows>
backing-store /dev/tank/iscsi/windows
</target>
'';
2022-06-20 18:15:47 +00:00
}