mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
chore(nfs): clean up kyuuto fs exports
This commit is contained in:
parent
2bb878be1d
commit
64efbaf503
5 changed files with 94 additions and 95 deletions
|
|
@ -10,6 +10,8 @@
|
|||
inherit (lib.modules) mkIf mkDefault mkMerge;
|
||||
cfg = config.gensokyo-zone.netboot;
|
||||
nfsEnabled = config.boot.initrd.supportedFilesystems.nfs or config.boot.initrd.supportedFilesystems.nfs4 or false;
|
||||
defaultCacheTimeoutMax = 60 * 60; # 1h
|
||||
defaultCacheTimeoutMin = 60; # 1m
|
||||
in {
|
||||
options.gensokyo-zone.netboot = with lib.types; {
|
||||
# TODO: default = true;
|
||||
|
|
@ -26,6 +28,11 @@ in {
|
|||
type = listOf str;
|
||||
default = [
|
||||
"nolock" # required in order to mount in initrd when statd daemon isn't running
|
||||
"nocto"
|
||||
"lazytime" "noatime"
|
||||
"actimeo=${toString defaultCacheTimeoutMax}"
|
||||
"acregmin=${toString defaultCacheTimeoutMin}"
|
||||
"acdirmin=${toString defaultCacheTimeoutMin}"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue