Refactor directory structure
This commit is contained in:
@@ -1,17 +1,21 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /mnt/audiobooks 0755 root root -"
|
||||
"d /mnt/books 0755 root root -"
|
||||
"d /mnt/books_extra 0755 root root -"
|
||||
"d /mnt/music 0755 root root -"
|
||||
"d /mnt/music_ext 0755 root root -"
|
||||
"d /mnt/books 0755 root root -"
|
||||
"d /mnt/download 0755 root root -"
|
||||
"d /mnt/games 0755 root root -"
|
||||
"d /mnt/games_ext 0755 root root -"
|
||||
"d /mnt/roms_ext 0755 root root -"
|
||||
"d /mnt/music 0755 root root -"
|
||||
"d /mnt/music_ext 0755 root root -"
|
||||
"d /mnt/podcasts 0755 root root -"
|
||||
"d /mnt/audiobooks 0755 root root -"
|
||||
"d /mnt/movies 0755 root root -"
|
||||
"d /mnt/movies_ext 0755 root root -"
|
||||
"d /mnt/roms_ext 0755 root root -"
|
||||
"d /mnt/tv 0755 root root -"
|
||||
"d /mnt/tv_ext 0755 root root -"
|
||||
];
|
||||
|
||||
fileSystems."/mnt/books" = {
|
||||
@@ -42,6 +46,20 @@
|
||||
"x-systemd.idle-timeout=10min"
|
||||
];
|
||||
};
|
||||
fileSystems."/mnt/download" = {
|
||||
device = "//10.0.0.76/download";
|
||||
fsType = "cifs";
|
||||
options = [
|
||||
"credentials=/run/secrets/smb"
|
||||
"vers=3.0"
|
||||
"uid=1000" "gid=1000"
|
||||
"file_mode=0664" "dir_mode=0775"
|
||||
"rw" "iocharset=utf8" "cache=strict" "mfsymlinks"
|
||||
"_netdev" "nofail"
|
||||
"x-systemd.automount" "noauto"
|
||||
"x-systemd.idle-timeout=10min"
|
||||
];
|
||||
};
|
||||
fileSystems."/mnt/music" = {
|
||||
device = "//10.0.0.76/music";
|
||||
fsType = "cifs";
|
||||
@@ -168,4 +186,32 @@
|
||||
"x-systemd.idle-timeout=10min"
|
||||
];
|
||||
};
|
||||
fileSystems."/mnt/tv" = {
|
||||
device = "//10.0.0.76/tv";
|
||||
fsType = "cifs";
|
||||
options = [
|
||||
"credentials=/run/secrets/smb"
|
||||
"vers=3.0"
|
||||
"uid=1000" "gid=1000"
|
||||
"file_mode=0664" "dir_mode=0775"
|
||||
"rw" "iocharset=utf8" "cache=strict" "mfsymlinks"
|
||||
"_netdev" "nofail"
|
||||
"x-systemd.automount" "noauto"
|
||||
"x-systemd.idle-timeout=10min"
|
||||
];
|
||||
};
|
||||
fileSystems."/mnt/tv_ext" = {
|
||||
device = "//10.0.0.76/tv_ext";
|
||||
fsType = "cifs";
|
||||
options = [
|
||||
"credentials=/run/secrets/smb"
|
||||
"vers=3.0"
|
||||
"uid=1000" "gid=1000"
|
||||
"file_mode=0664" "dir_mode=0775"
|
||||
"rw" "iocharset=utf8" "cache=strict" "mfsymlinks"
|
||||
"_netdev" "nofail"
|
||||
"x-systemd.automount" "noauto"
|
||||
"x-systemd.idle-timeout=10min"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user