mirror of
https://github.com/Ascyii/nixos.git
synced 2026-01-01 06:44:26 -05:00
26 lines
710 B
Nix
26 lines
710 B
Nix
{ inputs, ... }:
|
|
|
|
{
|
|
imports = [ inputs.sops-nix.nixosModules.sops ];
|
|
|
|
# For web mounting
|
|
services.davfs2.enable = true;
|
|
|
|
# Maybe the failed encryption is due to the btrfs system please remove this in the future
|
|
sops = {
|
|
defaultSopsFile = ./../../secrets.yaml;
|
|
age.keyFile = "/home/jonas/.config/sops/age/keys.txt";
|
|
secrets = { webdav_secret = { path = "/etc/davfs2/secrets"; }; };
|
|
};
|
|
|
|
systemd.mounts = [{
|
|
description = "WebDAV mount point";
|
|
wants = [ "network-online.target" ];
|
|
what = "https://dav.hahn1.one";
|
|
where = "/mnt/webdav";
|
|
type = "davfs";
|
|
options = "uid=1000,gid=1000,file_mode=0664,dir_mode=2775,_netdev";
|
|
mountConfig.TimeoutSec = "5s";
|
|
}];
|
|
}
|