From 38388f551c3666c8df8cf52d1d55f0971ad7f5be Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Mon, 22 Feb 2021 15:13:10 +0100 Subject: [PATCH] Zotero --- machines/kharbranth/default.nix | 1 + machines/kholinar/default.nix | 1 + modules/default.nix | 1 + modules/zotero.nix | 15 +++++++++++++++ 4 files changed, 18 insertions(+) create mode 100644 modules/zotero.nix 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 ]; + }; + }; +}