From 4961b853d402a6ec904dc963fa3cfbdc35d872db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madeleine=20Sydney=20=C5=9Alaga?= Date: Thu, 28 Aug 2025 14:39:48 -0600 Subject: [PATCH] feat(zotero): Add zotero module --- modules/home/zotero.nix | 24 ++++++++++++++++++++++++ users/crumb/default.nix | 1 + 2 files changed, 25 insertions(+) create mode 100644 modules/home/zotero.nix diff --git a/modules/home/zotero.nix b/modules/home/zotero.nix new file mode 100644 index 0000000..d6b7571 --- /dev/null +++ b/modules/home/zotero.nix @@ -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" + ]; + }; +} diff --git a/users/crumb/default.nix b/users/crumb/default.nix index 4aea087..2bb6e26 100755 --- a/users/crumb/default.nix +++ b/users/crumb/default.nix @@ -37,6 +37,7 @@ sydnix = { gpg.enable = true; + zotero.enable = true; xdg.enable = true; slippi.enable = true; openutau.enable = true;