🚀 add logseq module
This commit is contained in:
parent
a63ffacbc0
commit
cff826549b
3 changed files with 28 additions and 1 deletions
|
@ -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
|
||||
|
|
26
modules/programs/logseq.nix
Normal file
26
modules/programs/logseq.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue