fixing filesystems and stuff
This commit is contained in:
parent
bd894e5d3e
commit
33904e0181
6 changed files with 24 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
directory: /mount/filez/media/Music
|
||||
directory: /mnt/filez/media/Music
|
||||
library: ~/.config/beets/library.db
|
||||
asciify_paths: yes
|
||||
import:
|
||||
|
|
17
modules/system/filesystems-media-server.nix
Normal file
17
modules/system/filesystems-media-server.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
fileSystems =
|
||||
let
|
||||
automount-opts = "x-systemd.automount,noauto,users,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s,noperm,uid=1000";
|
||||
# filez-opts = automount-opts + ",credentials=/etc/nixos/filez-secrets";
|
||||
media-server-opts = automount-opts + ",credentials=/etc/nixos/media-server-secrets";
|
||||
in {
|
||||
|
||||
"/mnt/filez/media" = {
|
||||
device = "//media-server/import";
|
||||
fsType = "smb3";
|
||||
options = [ "${media-server-opts}" ];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue