cray: Mount all samba shares

This commit is contained in:
fleaz 2022-04-27 00:26:28 +02:00
parent a595f660a4
commit 4b5a17cfa2
No known key found for this signature in database
GPG key ID: AED15F8FDD04D083

View file

@ -23,8 +23,8 @@
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/2e85528d-0086-4835-9fc7-0e7a847d90bd"; boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/2e85528d-0086-4835-9fc7-0e7a847d90bd";
fileSystems."/mnt/pool" = { fileSystems."/mnt/share" = {
device = "//BART/Pool/"; device = "//BART/share/";
fsType = "cifs"; fsType = "cifs";
options = options =
let let
@ -32,8 +32,21 @@
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s"; automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
in in
[ "${automount_opts},credentials=/etc/nixos/smb-secrets" ]; [ "${automount_opts},credentials=/etc/nixos/smb-secrets,uid=1000,gid=100" ];
}; };
fileSystems."/mnt/media" = {
device = "//BART/media/";
fsType = "cifs";
options =
let
# this line prevents hanging on network split
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
in
[ "${automount_opts},credentials=/etc/nixos/smb-secrets,uid=1000,gid=100" ];
};
fileSystems."/boot/efi" = fileSystems."/boot/efi" =
{ {
device = "/dev/disk/by-uuid/274B-0F7C"; device = "/dev/disk/by-uuid/274B-0F7C";