feat(zotero): Add zotero module
This commit is contained in:
24
modules/home/zotero.nix
Normal file
24
modules/home/zotero.nix
Normal 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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -37,6 +37,7 @@
|
|||||||
|
|
||||||
sydnix = {
|
sydnix = {
|
||||||
gpg.enable = true;
|
gpg.enable = true;
|
||||||
|
zotero.enable = true;
|
||||||
xdg.enable = true;
|
xdg.enable = true;
|
||||||
slippi.enable = true;
|
slippi.enable = true;
|
||||||
openutau.enable = true;
|
openutau.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user