No dns mullvad

This commit is contained in:
Maxiem Geldhof 2025-10-31 20:19:49 +01:00
parent c48405716c
commit fb8cfc7ad7
3 changed files with 29 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{ pkgs, config, ... }:
{
environment.systemPackages = [ pkgs.rclone ];
environment.systemPackages = [ pkgs.rclone pkgs.samba ];
environment.etc."rclone-mnt.conf".text = ''
[myremote]
type = sftp
@ -20,4 +20,17 @@
"config=/etc/rclone-mnt.conf"
];
};
fileSystems."/mnt/sbox2" = {
device = "//u504615.your-storagebox.de/backup";
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" ];
};
}