29 lines
586 B
Nix
29 lines
586 B
Nix
{
|
|
# services.nfs.client = {
|
|
# enable = true;
|
|
# idmapd.enable = true;
|
|
# };
|
|
|
|
# environment.etc."idmapd.conf".text = ''
|
|
# [General]
|
|
# Domain = localdomain
|
|
|
|
# [Mapping]
|
|
# Nobody-User = nobody
|
|
# Nobody-Group = nogroup
|
|
# '';
|
|
|
|
boot.supportedFilesystems = [ "nfs" ];
|
|
|
|
services.rpcbind.enable = true;
|
|
|
|
fileSystems."/srv/forgejo" = {
|
|
device = "192.168.1.226:/volume1/data/forgejo";
|
|
fsType = "nfs4";
|
|
options = [ "x-systemd.automount" "noatime" "_netdev" ];
|
|
};
|
|
|
|
systemd.tmpfiles.rules = [
|
|
"d /srv/forgejo 0750 forgejo forgejo -"
|
|
];
|
|
}
|