1

System/Nixinator: Mount synology backup directory

This commit is contained in:
2025-07-19 04:02:51 +02:00
parent cbba6a0225
commit d41e7ed8fe

View File

@ -6,6 +6,7 @@
lib, lib,
pkgs, pkgs,
modulesPath, modulesPath,
username,
... ...
}: { }: {
imports = [(modulesPath + "/installer/scan/not-detected.nix")]; imports = [(modulesPath + "/installer/scan/not-detected.nix")];
@ -50,7 +51,7 @@
fileSystems = { fileSystems = {
# NOTE: Some filesystems are managed by disko (see ./disks.nix) # NOTE: Some filesystems are managed by disko (see ./disks.nix)
"/home/christoph/Games" = { "/home/${username}/Games" = {
device = "/dev/disk/by-id/nvme-WD_BLACK_SN850X_2000GB_231623802252-part1"; device = "/dev/disk/by-id/nvme-WD_BLACK_SN850X_2000GB_231623802252-part1";
fsType = "ext4"; fsType = "ext4";
options = ["defaults" "rw" "noatime"]; options = ["defaults" "rw" "noatime"];
@ -69,23 +70,29 @@
# Using NFS over TCP or increasing the value of the retrans option may mitigate # Using NFS over TCP or increasing the value of the retrans option may mitigate
# some of the risks of using the soft option. # some of the risks of using the soft option.
"/home/christoph/Movies" = { "/home/${username}/Movies" = {
device = "192.168.86.20:/mnt/SG Exos Mirror 18TB/Movie"; device = "192.168.86.20:/mnt/SG Exos Mirror 18TB/Movie";
fsType = "nfs"; fsType = "nfs";
options = ["defaults" "rw" "noatime" "_netdev" "bg" "soft"]; options = ["defaults" "rw" "noatime" "_netdev" "bg" "soft"];
}; };
"/home/christoph/Shows" = { "/home/${username}/Shows" = {
device = "192.168.86.20:/mnt/SG Exos Mirror 18TB/Show"; device = "192.168.86.20:/mnt/SG Exos Mirror 18TB/Show";
fsType = "nfs"; fsType = "nfs";
options = ["defaults" "rw" "noatime" "_netdev" "bg" "soft"]; options = ["defaults" "rw" "noatime" "_netdev" "bg" "soft"];
}; };
"/home/christoph/Music" = { "/home/${username}/Music" = {
device = "192.168.86.20:/mnt/SG Exos Mirror 18TB/Music"; device = "192.168.86.20:/mnt/SG Exos Mirror 18TB/Music";
fsType = "nfs"; fsType = "nfs";
options = ["defaults" "rw" "noatime" "_netdev" "bg" "soft"]; options = ["defaults" "rw" "noatime" "_netdev" "bg" "soft"];
}; };
"/home/${username}/Restic" = {
device = "192.168.86.15:/volume1/NixinatorPersistence";
fsType = "nfs";
options = ["defaults" "rw" "noatime" "_netdev" "bg" "soft"];
};
}; };
hardware = { hardware = {