🚀 add logseq module

nixos
Moritz Böhme 2022-10-15 18:21:12 +02:00
parent a63ffacbc0
commit cff826549b
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
3 changed files with 28 additions and 1 deletions

View File

@ -79,6 +79,7 @@ with lib; {
hub.enable = true; hub.enable = true;
kitty.enable = true; kitty.enable = true;
ledger.enable = true; ledger.enable = true;
logseq.enable = true;
python.enable = true; python.enable = true;
rofi.enable = true; rofi.enable = true;
spotify.enable = true; spotify.enable = true;
@ -114,7 +115,6 @@ with lib; {
jellyfin-media-player jellyfin-media-player
keepassxc keepassxc
libreoffice libreoffice
logseq
pavucontrol pavucontrol
signal-desktop signal-desktop
tlaplusToolbox tlaplusToolbox

View File

@ -22,6 +22,7 @@
./kakoune.nix ./kakoune.nix
./kitty.nix ./kitty.nix
./ledger ./ledger
./logseq.nix
./python.nix ./python.nix
./rofi ./rofi
./spotify.nix ./spotify.nix

View File

@ -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";
};
}