🚀 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;
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
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