🚀 add logseq module
parent
a63ffacbc0
commit
cff826549b
|
@ -79,6 +79,7 @@ with lib; {
|
|||
hub.enable = true;
|
||||
kitty.enable = true;
|
||||
ledger.enable = true;
|
||||
logseq.enable = true;
|
||||
python.enable = true;
|
||||
rofi.enable = true;
|
||||
spotify.enable = true;
|
||||
|
@ -114,7 +115,6 @@ with lib; {
|
|||
jellyfin-media-player
|
||||
keepassxc
|
||||
libreoffice
|
||||
logseq
|
||||
pavucontrol
|
||||
signal-desktop
|
||||
tlaplusToolbox
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
./kakoune.nix
|
||||
./kitty.nix
|
||||
./ledger
|
||||
./logseq.nix
|
||||
./python.nix
|
||||
./rofi
|
||||
./spotify.nix
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
{ 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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue