From 22b8cc86e9f0b995c68fa42fccfcf775bc007507 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Mon, 24 Jul 2023 15:23:05 +0800 Subject: [PATCH] profiles/filesystem: add cluster-wide default setup option --- modules/nixos/profiles/filesystem.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/nixos/profiles/filesystem.nix b/modules/nixos/profiles/filesystem.nix index b3f5957d..5148e55e 100644 --- a/modules/nixos/profiles/filesystem.nix +++ b/modules/nixos/profiles/filesystem.nix @@ -13,6 +13,7 @@ let in { options.profiles.filesystem = { + tools.enable = lib.mkEnableOption "filesystem-related settings"; setups = { archive.enable = lib.mkEnableOption "automounting offline archive"; external-hdd.enable = lib.mkEnableOption "automounting personal external hard drive"; @@ -21,6 +22,16 @@ in }; config = lib.mkMerge [ + (lib.mkIf cfg.tools.enable { + # Enable WebDAV mounting. + services.davfs2.enable = true; + + # Installing filesystem debugging utilities. + environment.systemPackages = with pkgs; [ + afuse + ]; + }) + (lib.mkIf cfg.setups.archive.enable { fileSystems."/mnt/archives" = { device = "/dev/disk/by-uuid/6ba86a30-5fa4-41d9-8354-fa8af0f57f49";