Compare commits

..

2 Commits

Author SHA1 Message Date
2b8f9c4ae7
Adjust NFS mount options 2024-05-04 12:49:12 +01:00
37cdd6e81d
Add kmod to snd_usb_audio reload unit 2024-05-04 12:48:53 +01:00
2 changed files with 17 additions and 1 deletions

View File

@ -21,7 +21,20 @@
fileSystems."/mnt/library" = {
device = "library.mesh.vimium.net:/mnt/library";
fsType = "nfs";
options = [ "nfsvers=4.2" "soft" "nocto" "ro" "x-systemd.automount" "noauto" ];
options = [
"nfsvers=4.2"
"bg"
"intr"
"soft"
"timeo=5"
"retrans=5"
"actimeo=5"
"retry=5"
"nocto"
"ro"
"x-systemd.automount"
"noauto"
];
};
system.autoUpgrade = {

View File

@ -32,6 +32,9 @@ in {
description = "Reload snd_usb_audio kernel module";
wantedBy = [ "sound.target" ];
serviceConfig.Type = "oneshot";
path = with pkgs; [
kmod
];
script = ''
rmmod snd_usb_audio
insmod /run/booted-system/kernel-modules/lib/modules/$(uname -r)/extra/snd-usb-audio.ko.xz