feat(zotero): Add zotero module

This commit is contained in:
2025-08-28 14:39:48 -06:00
parent 024b2a39d9
commit 4961b853d4
2 changed files with 25 additions and 0 deletions

24
modules/home/zotero.nix Normal file
View File

@@ -0,0 +1,24 @@
{ config, lib, pkgs, ... }:
let cfg = config.sydnix.zotero;
in {
options.sydnix.zotero = {
enable = lib.mkEnableOption "Zotero";
};
config = lib.mkIf cfg.enable {
home.packages = [
pkgs.zotero
];
sydnix.impermanence.directories =
let xdg-data-home =
lib.removePrefix "${config.home.homeDirectory}"
(lib.removePrefix "~"
config.xdg.dataHome);
in [
".zotero"
"${xdg-data-home}/zotero"
];
};
}

View File

@@ -37,6 +37,7 @@
sydnix = {
gpg.enable = true;
zotero.enable = true;
xdg.enable = true;
slippi.enable = true;
openutau.enable = true;