dotfiles/modules/programs/logseq.nix
2022-10-15 18:22:20 +02:00

26 lines
408 B
Nix

{ config
, lib
, pkgs
, ...
}:
with lib;
let
cfg = config.my.programs.logseq;
in
{
options.my.programs.logseq = {
enable = mkOption {
default = false;
type = types.bool;
example = true;
};
};
config = mkIf cfg.enable {
users.users.moritz.packages = with pkgs; [
logseq
];
xdg.mime.defaultApplications."x-scheme-handler/logseq" = "logseq.desktop";
};
}