48 lines
1.3 KiB
Nix
48 lines
1.3 KiB
Nix
# Extra local disks. Declared here, not in hardware.nix (hardware.nix is generated).
|
|
{ config, lib, ... }:
|
|
let
|
|
# Stable UID so NTFS `uid=` matches `users.users.olivier` (override if your account is not 1000).
|
|
olivierUid = config.users.users.olivier.uid or 1000;
|
|
in
|
|
{
|
|
users.users.olivier.uid = lib.mkDefault 1000;
|
|
# LABEL="MediaLibrary" (btrfs on sda1 by UUID). No subvol=@ — this disk has no @ subvolume.
|
|
fileSystems."/mnt/2nd" = {
|
|
device = "/dev/disk/by-uuid/17d8a981-db3b-415e-a0f7-7dbc519e04ab";
|
|
fsType = "btrfs";
|
|
options = [
|
|
"compress=zstd"
|
|
"noatime"
|
|
"nofail"
|
|
"x-systemd.device-timeout=30"
|
|
];
|
|
};
|
|
|
|
#new deep storage unit
|
|
fileSystems."/mnt/deep" = {
|
|
device = "/dev/disk/by-uuid/64fb08fe-da5d-4405-afa3-1603a411e9e5";
|
|
fsType = "btrfs";
|
|
options = [
|
|
"compress=zstd"
|
|
"noatime"
|
|
"nofail"
|
|
"x-systemd.device-timeout=30"
|
|
];
|
|
};
|
|
|
|
# LABEL="Deep Storage Unit". Owner olivier, group nfsmedia (990) so:
|
|
# - local logins write as user 1000 (owner rwx);
|
|
# - NFS (all_squash → uid/gid 990) matches group 990 → rwx (see jellyfin-nfs-export).
|
|
#fileSystems."/mnt/test" = {
|
|
# device = "/dev/disk/by-uuid/BC12E55E12E51DE0";
|
|
# fsType = "ntfs-3g";
|
|
# options = [
|
|
# "rw"
|
|
# "force"
|
|
# "uid=${toString olivierUid}"
|
|
# "gid=990"
|
|
# "umask=0002"
|
|
# ];
|
|
#};
|
|
}
|