mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 20:39:18 -08:00
29 lines
766 B
Nix
29 lines
766 B
Nix
{ config, lib, meta, ... }:
|
|
|
|
{
|
|
boot.supportedFilesystems = [ "nfs" ];
|
|
|
|
|
|
fileSystems."/mnt/kat-nas" = lib.mkIf (config.networking.hostName != "yukari") {
|
|
device = "yukari.inskip.me:/mnt/zraw/media";
|
|
fsType = "nfs";
|
|
options = [ "x-systemd.automount" "noauto" "nfsvers=4" "soft" "retrans=2" "timeo=60" ];
|
|
};
|
|
/*
|
|
fileSystems."/mnt/hex-corn" = {
|
|
device = "storah.net.lilwit.ch:/data/cornbox";
|
|
fsType = "nfs";
|
|
options = [ "x-systemd.automount" "noauto" ];
|
|
};
|
|
|
|
fileSystems."/mnt/hex-tor" = {
|
|
device = "storah.net.lilwit.ch:/data/torrents";
|
|
fsType = "nfs";
|
|
options = [ "x-systemd.automount" "noauto" ];
|
|
};
|
|
*/
|
|
|
|
systemd.services.nfs-mountd = {
|
|
wants = [ "network-online.target" "yggdrassil.service" ];
|
|
};
|
|
}
|