dotfiles/modules/programs/logseq.nix

21 lines
340 B
Nix
Raw Normal View History

2022-10-15 18:21:12 +02:00
{ config
, lib
, pkgs
, ...
}:
with lib;
let
cfg = config.my.programs.logseq;
in
{
2022-10-15 20:00:09 +02:00
options.my.programs.logseq.enable = mkEnableOption "logseq";
2022-10-15 18:21:12 +02:00
config = mkIf cfg.enable {
users.users.moritz.packages = with pkgs; [
2022-12-23 12:37:57 +01:00
logseq-wayland
2022-10-15 18:21:12 +02:00
];
xdg.mime.defaultApplications."x-scheme-handler/logseq" = "logseq.desktop";
};
}