diff --git a/machines/kharbranth/default.nix b/machines/kharbranth/default.nix index 6639e4bb..ab4adc9b 100644 --- a/machines/kharbranth/default.nix +++ b/machines/kharbranth/default.nix @@ -38,5 +38,6 @@ ]; rootDataset = "rpool/local/root"; }; + zotero.enable = true; }; } diff --git a/machines/kholinar/default.nix b/machines/kholinar/default.nix index 25c38987..2dbd4dc5 100644 --- a/machines/kholinar/default.nix +++ b/machines/kholinar/default.nix @@ -39,5 +39,6 @@ ]; rootDataset = "rpool/local/root"; }; + zotero.enable = true; }; } diff --git a/modules/default.nix b/modules/default.nix index 6c278b69..f0e84b2d 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -22,6 +22,7 @@ ./tmux.nix ./zeroad.nix ./zfs.nix + ./zotero.nix ./zsh.nix ]; diff --git a/modules/zotero.nix b/modules/zotero.nix new file mode 100644 index 00000000..5e607f42 --- /dev/null +++ b/modules/zotero.nix @@ -0,0 +1,15 @@ +{ config, lib, pkgs, ... }: + +{ + options.chvp.zotero.enable = lib.mkOption { + default = false; + example = true; + }; + + config = lib.mkIf config.chvp.zotero.enable { + chvp.zfs.homeLinks = [{ path = ".zotero"; type = "data"; }]; + home-manager.users.charlotte = { ... }: { + home.packages = [ pkgs.zotero ]; + }; + }; +}