Compare commits
No commits in common. "36462dd228be6c30b90c984c947158cdf0f0030c" and "42dd305fdb5cad15864bb311c8af1e3f0e4f2b18" have entirely different histories.
36462dd228
...
42dd305fdb
@ -22,15 +22,6 @@
|
|||||||
boot.tmpOnTmpfs = true;
|
boot.tmpOnTmpfs = true;
|
||||||
boot.supportedFilesystems = [ "zfs" ];
|
boot.supportedFilesystems = [ "zfs" ];
|
||||||
|
|
||||||
services.zfs = {
|
|
||||||
trim.enable = true;
|
|
||||||
autoSnapshot = {
|
|
||||||
enable = true;
|
|
||||||
monthly = 6;
|
|
||||||
};
|
|
||||||
autoScrub.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
|
|
||||||
# Logitech G920
|
# Logitech G920
|
||||||
@ -90,20 +81,5 @@
|
|||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
services.openssh.passwordAuthentication = false;
|
services.openssh.passwordAuthentication = false;
|
||||||
|
|
||||||
systemd.services.iscsid = {
|
|
||||||
description = "iscsid daemon";
|
|
||||||
wantedBy = [ "network-online.target" ];
|
|
||||||
preStart = "${pkgs.kmod}/bin/modprobe iscsi_tcp";
|
|
||||||
postStart = ''
|
|
||||||
${pkgs.openiscsi}/bin/iscsiadm -m discovery -t st -p 10.30.0.1
|
|
||||||
${pkgs.openiscsi}/bin/iscsiadm -m node -T iqn.2019-11.nyanlout.re:steam -l
|
|
||||||
'';
|
|
||||||
serviceConfig = {
|
|
||||||
ExecStart = "${pkgs.openiscsi}/bin/iscsid -f -c ${pkgs.openiscsi}/etc/iscsi/iscsid.conf -i ${pkgs.openiscsi}/etc/iscsi/initiatorname.iscsi";
|
|
||||||
KillMode = "process";
|
|
||||||
Restart = "on-success";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "20.03";
|
system.stateVersion = "20.03";
|
||||||
}
|
}
|
||||||
|
@ -62,9 +62,9 @@
|
|||||||
options = [ "bind" ];
|
options = [ "bind" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/mnt/steam-lun" =
|
fileSystems."/mnt/steam" =
|
||||||
{ device = "/dev/disk/by-path/ip-10.30.0.1:3260-iscsi-iqn.2019-11.nyanlout.re:steam-lun-1";
|
{ device = "10.30.0.1:/exports/steam";
|
||||||
fsType = "ext4";
|
fsType = "nfs";
|
||||||
options = ["x-systemd.automount" "noauto"];
|
options = ["x-systemd.automount" "noauto"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user