mirror of
https://github.com/sstent/nixos-cluster.git
synced 2026-04-05 12:32:55 +00:00
addin ssh key
This commit is contained in:
@@ -18,22 +18,6 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
services.openiscsi = {
|
|
||||||
enable = true;
|
|
||||||
name = "iqn.2013-03.com.wdc:mycloudpr2100:clusterstore";
|
|
||||||
enableAutoLoginOut = true;
|
|
||||||
discoverPortal = "192.168.1.109";
|
|
||||||
|
|
||||||
package = pkgs.openiscsi;
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/mnt/ClusterStore" = {
|
|
||||||
device = "/dev/sda1";
|
|
||||||
fsType = "ext4";
|
|
||||||
# options = ["uid=0,gid=1000"];
|
|
||||||
options = ["_netdev"];
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.defaultGateway = "192.168.1.1";
|
networking.defaultGateway = "192.168.1.1";
|
||||||
networking.nameservers = ["192.168.1.1" "8.8.8.8"];
|
networking.nameservers = ["192.168.1.1" "8.8.8.8"];
|
||||||
}
|
}
|
||||||
|
|||||||
23
modules/mnt-public copy.nix
Normal file
23
modules/mnt-public copy.nix
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
services.openiscsi = {
|
||||||
|
enable = true;
|
||||||
|
name = "iqn.2013-03.com.wdc:mycloudpr2100:clusterstore";
|
||||||
|
enableAutoLoginOut = true;
|
||||||
|
discoverPortal = "192.168.1.109";
|
||||||
|
|
||||||
|
package = pkgs.openiscsi;
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/mnt/ClusterStore" = {
|
||||||
|
device = "/dev/sda1";
|
||||||
|
fsType = "ext4";
|
||||||
|
# options = ["uid=0,gid=1000"];
|
||||||
|
options = ["_netdev" "uid=1000"];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user