summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/share/hetzner-client.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-03-02 16:37:48 +0100
committerlassulus <lassulus@lassul.us>2022-03-02 16:37:48 +0100
commit44a42bb268e163e3fa43fe6ea6c4b979da0f49e9 (patch)
tree0e9475b0a40464b8122ac19ddcc63fe0daab3cd4 /makefu/2configs/share/hetzner-client.nix
parent6002189225e347418f07a99d6a85b033fa0edaf7 (diff)
parent81817007edda4601c95a8f95aa99ce15320e224a (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/share/hetzner-client.nix')
-rw-r--r--makefu/2configs/share/hetzner-client.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/makefu/2configs/share/hetzner-client.nix b/makefu/2configs/share/hetzner-client.nix
index e59698063..90bc32deb 100644
--- a/makefu/2configs/share/hetzner-client.nix
+++ b/makefu/2configs/share/hetzner-client.nix
@@ -1,5 +1,6 @@
{ config, lib, pkgs, ... }:
+with <stockholm/lib>;
let
automount_opts =
[ "x-systemd.automount"
@@ -10,14 +11,16 @@ let
host = "u288834.your-storagebox.de";
in {
boot.kernel.sysctl."net.ipv6.route.max_size" = 2147483647;
+
fileSystems."/media/cloud" = {
device = "//${host}/backup";
fsType = "cifs";
options = automount_opts ++
- [ "credentials=/var/src/secrets/hetzner.smb"
- "file_mode=0775"
- "dir_mode=0775"
- "uid=9001"
+ [ "credentials=${toString <secrets/hetzner.smb>}"
+ "file_mode=0770"
+ "dir_mode=0770"
+ "uid=${toString config.users.users.download.uid}"
+ "gid=${toString config.users.groups.download.gid}"
#"vers=3"
"vers=2.1"
"rsize=65536"
@@ -25,5 +28,4 @@ in {
"iocharset=utf8"
];
};
-
}