erstmal statisches mounten --es fehlt die disk uuid
All checks were successful
Evaluate Hydra Jobs / eval-hydra-jobs (push) Successful in 2m24s
All checks were successful
Evaluate Hydra Jobs / eval-hydra-jobs (push) Successful in 2m24s
This commit is contained in:
@@ -1,11 +1,20 @@
|
|||||||
{config, pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
#automount mit udisks2
|
#automount mit udisks2
|
||||||
#siehe udevadm monitor
|
#siehe udevadm monitor
|
||||||
#bash-script?
|
#bash-script?
|
||||||
#user-oder root mount
|
#user-oder root mount
|
||||||
#systemd-automount villeicht
|
#systemd-automount villeicht
|
||||||
|
fileSystems = {
|
||||||
|
"/mnt/extHdd0" = { #statisches mounten ist am einfachsten aber kein hotplug möglich
|
||||||
|
device = "/dev/disk/by-uuid/"; #noch ausfüllen
|
||||||
|
fsType = "ext4"; #zfs wäre hier cool
|
||||||
|
options = [ "users" "nofail" ];
|
||||||
|
};
|
||||||
|
"/exports/extHdd0" = {
|
||||||
|
device = "/mnt/extHdd0";
|
||||||
|
fsType = "none";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
users.groups = { nfs = {gid = 1003; }; }; #erstelle nfs user und gruppe für isolation
|
users.groups = { nfs = {gid = 1003; }; }; #erstelle nfs user und gruppe für isolation
|
||||||
users.user.nfs = {
|
users.user.nfs = {
|
||||||
@@ -13,17 +22,15 @@
|
|||||||
group = "nfs";
|
group = "nfs";
|
||||||
uid = "1003";
|
uid = "1003";
|
||||||
};
|
};
|
||||||
|
users.user.malobeo.extraGroups = [ "nfs" ];
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [ "d /export 0775 nfs nfs -" ]; #erstelle nfs ordner
|
systemd.tmpfiles.rules = [ "d /export 0775 nfs nfs -" ]; #erstelle nfs ordner
|
||||||
|
|
||||||
services.nfs.server = {
|
services.nfs.server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
exports = ''
|
exports = ''
|
||||||
/export 192.168.1.0/24(ro, async, all_squash, anonuid=1003, anongid=1003)
|
/export 192.168.1.0/24(ro, nohide, no_subtree_check, async, all_squash, anonuid=1003, anongid=1003)
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
networking.firewall = {
|
networking.firewall.allowedTCPPorts = [ 2049 ]; #wir benutzen NfsV4 hoffentlich
|
||||||
allowedTCPPorts = [];
|
|
||||||
allowedUDPPorts = [];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user