2023-12-10 06:03:49 +01:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
# https://search.nixos.org/options?query=services.zfs
|
|
|
|
|
|
|
|
imports = [ ./common-zfs.nix ];
|
|
|
|
|
2024-12-26 01:18:01 +01:00
|
|
|
config = lib.mkIf (!config.virtualisation.isVmVariant) {
|
|
|
|
|
|
|
|
# non legacy-mount
|
|
|
|
systemd.services.zfs-mount.enable = true;
|
|
|
|
boot.zfs.extraPools = [ "Meconium" ]; # import on boot
|
|
|
|
|
2025-01-22 10:01:41 +01:00
|
|
|
# attic
|
2025-01-22 10:06:34 +01:00
|
|
|
services.atticd.settings = {
|
|
|
|
database.url = "sqlite:///mnt/meconium/blob/attic/server.db?mode=rwc";
|
|
|
|
storage.type = "local";
|
|
|
|
storage.path = "/mnt/meconium/blob/attic/storage";
|
|
|
|
};
|
2025-01-22 10:01:41 +01:00
|
|
|
|
2024-12-26 01:18:01 +01:00
|
|
|
};
|
2023-12-10 06:03:49 +01:00
|
|
|
}
|