No dns mullvad
This commit is contained in:
parent
c48405716c
commit
fb8cfc7ad7
3 changed files with 29 additions and 4 deletions
|
|
@ -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" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue