mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
profiles/filesystem: add cluster-wide default setup option
This commit is contained in:
parent
305c54996f
commit
22b8cc86e9
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user