mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 01:58:12 +09:00
unas mount
This commit is contained in:
@@ -9,4 +9,20 @@
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
fileSystems."/mnt/immich-nfs" = {
|
||||
device = "unas.moons14.com:/var/nfs/shared/immich/mnt";
|
||||
fsType = "nfs";
|
||||
options = [
|
||||
"nfsvers=4.2" # 可能なら NFSv4 系を推奨
|
||||
"hard"
|
||||
"timeo=600"
|
||||
"retrans=2"
|
||||
"noatime"
|
||||
"_netdev"
|
||||
"nofail"
|
||||
"x-systemd.requires=network-online.target"
|
||||
"x-systemd.after=network-online.target"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
systemd-boot.enable = true;
|
||||
systemd-boot.configurationLimit = 8;
|
||||
efi.canTouchEfiVariables = true;
|
||||
supportedFilesystems = [ "nfs" ];
|
||||
};
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
}
|
||||
@@ -45,6 +45,8 @@
|
||||
};
|
||||
};
|
||||
|
||||
rpcbind.enable = true;
|
||||
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
autoPrune = {
|
||||
|
||||
Reference in New Issue
Block a user