gum/share/hetzner-cifs: fix issues with reboot
for real this time!
This commit is contained in:
parent
1a00859ad7
commit
80dbf71a6f
|
@ -13,6 +13,7 @@ in {
|
|||
fileSystems."${wwwdir}" = {
|
||||
device = storedir;
|
||||
options = [ "bind" ];
|
||||
depends = [ "/media/cloud" ];
|
||||
};
|
||||
|
||||
services.openssh = {
|
||||
|
|
|
@ -57,7 +57,7 @@ in {
|
|||
users.users.nextcloud.extraGroups = [ "download" ];
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
package = pkgs.nextcloud25;
|
||||
package = pkgs.nextcloud26;
|
||||
hostName = "o.euer.krebsco.de";
|
||||
# Use HTTPS for links
|
||||
https = true;
|
||||
|
|
|
@ -2,12 +2,13 @@
|
|||
|
||||
let
|
||||
automount_opts =
|
||||
[ "x-systemd.automount" "noauto"
|
||||
[ "x-systemd.automount","nofail"
|
||||
"x-systemd.idle-timeout=300"
|
||||
"x-systemd.mount-timeout=60s"
|
||||
];
|
||||
host = "gum.w"; #TODO
|
||||
host = "gum.w";
|
||||
in {
|
||||
sops.secrets."download.smb" = {};
|
||||
boot.extraModprobeConfig = ''
|
||||
options cifs CIFSMaxBufSize=130048
|
||||
'';
|
||||
|
@ -15,7 +16,7 @@ in {
|
|||
device = "//${host}/cloud-proxy";
|
||||
fsType = "cifs";
|
||||
options = automount_opts ++
|
||||
[ "credentials=/var/src/secrets/download.smb"
|
||||
[ "credentials=${config.sops.secrets."download.smb".path}"
|
||||
"file_mode=0775"
|
||||
"dir_mode=0775"
|
||||
"bsize=8388608"
|
||||
|
|
|
@ -1,19 +1,17 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with <stockholm/lib>;
|
||||
let
|
||||
automount_opts =
|
||||
["nofail"
|
||||
];
|
||||
automount_opts = ["nofail" "_netdev" "soft" "x-systemd.automount"];
|
||||
host = "u288834.your-storagebox.de";
|
||||
in {
|
||||
boot.kernel.sysctl."net.ipv6.route.max_size" = 2147483647;
|
||||
sops.secrets."hetzner.smb" = {};
|
||||
|
||||
fileSystems."/media/cloud" = {
|
||||
device = "//${host}/backup";
|
||||
fsType = "cifs";
|
||||
options = automount_opts ++
|
||||
[ "credentials=${toString <secrets/hetzner.smb>}"
|
||||
[ "credentials=${config.sops.secrets."hetzner.smb".path}"
|
||||
"file_mode=0770"
|
||||
"dir_mode=0770"
|
||||
"uid=${toString config.users.users.download.uid}"
|
||||
|
|
|
@ -7,7 +7,7 @@ let
|
|||
"x-systemd.device-timeout=5s"
|
||||
"x-systemd.mount-timeout=5s"
|
||||
];
|
||||
host = "omo.lan"; #TODO
|
||||
host = "omo.lan";
|
||||
path = "/media/omo/photos";
|
||||
in {
|
||||
systemd.tmpfiles.rules = [
|
||||
|
|
Loading…
Reference in a new issue