Some lsp refactor. Made webdav finally work with some internet search

This commit is contained in:
2025-08-31 22:38:24 +02:00
parent b781a9f492
commit 85fbdb5795
14 changed files with 224 additions and 181 deletions

View File

@@ -1,20 +1,22 @@
{ 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
# Load the secret
sops = {
defaultSopsFile = ./../../secrets.yaml;
age.keyFile = "/home/jonas/.config/sops/age/keys.txt";
secrets = { webdav_secret = { path = "/etc/davfs2/secrets"; }; };
secrets = {
webdav_authstring = {
mode = "0600";
path = "/etc/davfs2/secrets";
};
};
};
systemd.mounts = [{
description = "WebDAV mount point";
description = "Webdav mount point";
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
what = "https://dav.hahn1.one";
where = "/mnt/webdav";
@@ -22,4 +24,12 @@
options = "uid=1000,gid=1000,file_mode=0664,dir_mode=2775,_netdev";
mountConfig.TimeoutSec = "5s";
}];
# Is this too much power drain?
systemd.automounts = [{
description = "Webdav automount";
where = "/mnt/webdav";
wantedBy = [ "multi-user.target" ];
automountConfig = { TimeoutIdleSec = "2m"; };
}];
}