Compare commits
No commits in common. "816a34770ca05b49ba86bd8e1aeb232aa0a3d51d" and "0962774501fa51e852d78252cd9497f35c69fcd9" have entirely different histories.
816a34770c
...
0962774501
|
@ -6,7 +6,11 @@
|
||||||
config,
|
config,
|
||||||
modulesPath,
|
modulesPath,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
davfsconf = pkgs.writeText "davfs.conf" ''
|
||||||
|
secrets ${config.sops.secrets."webdav-secret".path}
|
||||||
|
'';
|
||||||
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
# inputs.nixos-hardware.nixosModules.raspberry-pi-4
|
# inputs.nixos-hardware.nixosModules.raspberry-pi-4
|
||||||
(modulesPath + "/installer/sd-card/sd-image-aarch64.nix")
|
(modulesPath + "/installer/sd-card/sd-image-aarch64.nix")
|
||||||
|
@ -72,31 +76,23 @@
|
||||||
prowlarr.enable = true;
|
prowlarr.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
sops.secrets."webdav-secret" = {
|
sops.secrets."webdav-secret".mode = "0600";
|
||||||
mode = "0600";
|
sops.secrets."webdav-secret".owner = config.users.users.root.name;
|
||||||
owner = config.users.users.root.name;
|
|
||||||
path = "/etc/davfs2/secrets";
|
services.davfs2.enable = true;
|
||||||
|
services.autofs = {
|
||||||
|
enable = true;
|
||||||
|
autoMaster = let
|
||||||
|
mapConf = pkgs.writeText "auto" ''
|
||||||
|
nextcloud -fstype=davfs,conf=${davfsconf},uid=1003,gid=100 :https\:nextcloud.gladtherescake.eu/remote.php/webdav/
|
||||||
|
'';
|
||||||
|
in ''
|
||||||
|
/home/jellyfinmediaplayer/webdav file:${mapConf}
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.mounts = [
|
|
||||||
{
|
|
||||||
enable = true;
|
|
||||||
description = "Webdav mount point";
|
|
||||||
after = ["network-online.target"];
|
|
||||||
wants = ["network-online.target"];
|
|
||||||
|
|
||||||
what = "https://gladtherescake.eu/remote.php/dav/files/GLaDTheresCake";
|
|
||||||
where = "/home/jellyfinmediaplayer/nextcloud";
|
|
||||||
options = "uid=1003,gid=1003,file_mode=0664,dir_mode=2775";
|
|
||||||
type = "davfs";
|
|
||||||
mountConfig.TimeoutSec = 15;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
#uses port 8096
|
#uses port 8096
|
||||||
services.jellyfin.enable = true;
|
services.jellyfin.enable = true;
|
||||||
users.groups.jellyfinmediaplayer = {};
|
|
||||||
users.users.jellyfinmediaplayer.group = "jellyfinmediaplayer";
|
|
||||||
users.users.jellyfin.extraGroups = ["jellyfinmediaplayer"];
|
users.users.jellyfin.extraGroups = ["jellyfinmediaplayer"];
|
||||||
|
|
||||||
# Add stremio kiosk on wayland :)
|
# Add stremio kiosk on wayland :)
|
||||||
|
|
Loading…
Reference in a new issue