let's mount the server's webdav for storage on wheatley
This commit is contained in:
parent
daae2195f3
commit
5e594142d6
2 changed files with 23 additions and 3 deletions
|
@ -6,7 +6,11 @@
|
|||
config,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
davfsconf = pkgs.writeText "davfs.conf" ''
|
||||
secrets ${config.sops.secrets."webdav-secret".path}
|
||||
'';
|
||||
in {
|
||||
imports = [
|
||||
# inputs.nixos-hardware.nixosModules.raspberry-pi-4
|
||||
(modulesPath + "/installer/sd-card/sd-image-aarch64.nix")
|
||||
|
@ -72,6 +76,21 @@
|
|||
prowlarr.enable = true;
|
||||
};
|
||||
|
||||
sops.secrets."webdav-secret".mode = "0600";
|
||||
sops.secrets."webdav-secret".owner = config.users.users.root.name;
|
||||
|
||||
services.davfs2.enable = true;
|
||||
services.autofs = {
|
||||
enable = true;
|
||||
autoMaster = let
|
||||
mapConf = pkgs.writeText "auto" ''
|
||||
nextcloud -fstype=davfs,conf=${davfsconf},uid=myuid :https\:nextcloud.gladtherescake.eu/remote.php/webdav/
|
||||
'';
|
||||
in ''
|
||||
/home/directory/mounts file:${mapConf}
|
||||
'';
|
||||
};
|
||||
|
||||
#uses port 8096
|
||||
services.jellyfin.enable = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue