diff --git a/hosts/idols-ai/default.nix b/hosts/idols-ai/default.nix index 3f5aff78..e6324701 100644 --- a/hosts/idols-ai/default.nix +++ b/hosts/idols-ai/default.nix @@ -24,7 +24,6 @@ in # disks ./disko-fs.nix ./disko-fs-data.nix - ./netdev-mount.nix # Include the results of the hardware scan. ./hardware-configuration.nix diff --git a/hosts/idols-ai/netdev-mount.nix b/hosts/idols-ai/netdev-mount.nix deleted file mode 100644 index 81df4457..00000000 --- a/hosts/idols-ai/netdev-mount.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ - config, - ... -}: -{ - # enable davfs2 driver for webdav - services.davfs2 = { - enable = true; - # https://man.archlinux.org/man/davfs2.conf.5 - settings = { - globalSection.use_locks = true; - sections = { - "/mnt/fileshare" = { - # try to get this information from all files in a directory with one PROPFIND request. - gui_optimize = true; - }; - }; - }; - }; - - # mount a webdav share - # https://wiki.archlinux.org/title/Davfs2 - fileSystems."/mnt/fileshare" = { - device = "https://webdav.writefor.fun/"; - fsType = "davfs"; - options = [ - # https://www.freedesktop.org/software/systemd/man/latest/systemd.mount.html - "nofail" - "_netdev" # Wait for network - "rw" - "uid=1000,gid=100,dir_mode=0750,file_mode=0750" - ]; - }; - # davfs2 reads its credentials from /etc/davfs2/secrets - environment.etc."davfs2/secrets" = { - source = config.age.secrets."davfs-secrets".path; - mode = "0600"; - }; -} diff --git a/hosts/idols-ai/preservation.nix b/hosts/idols-ai/preservation.nix index cfc5f147..bfc08805 100644 --- a/hosts/idols-ai/preservation.nix +++ b/hosts/idols-ai/preservation.nix @@ -48,9 +48,6 @@ in "/var/log" - # preserve davfs2 driver's cache to avoid large memory usage - "/var/cache/davfs2" - # system-core "/var/lib/nixos" "/var/lib/systemd" diff --git a/secrets/nixos.nix b/secrets/nixos.nix index 03b916c4..5c0e2f49 100644 --- a/secrets/nixos.nix +++ b/secrets/nixos.nix @@ -101,12 +101,6 @@ in # Used only by NixOS Modules - # referenced in /etc/fstab to mount davfs volume - "davfs-secrets" = { - file = "${mysecrets}/davfs-secrets.age"; - } - // high_security; - "rclone.conf" = { file = "${mysecrets}/rclone.conf.age"; }