From cff826549bffd5682f4bb27b58649886b9cc472a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Sat, 15 Oct 2022 18:21:12 +0200 Subject: [PATCH] :rocket: add logseq module --- modules/profiles/desktop.nix | 2 +- modules/programs/default.nix | 1 + modules/programs/logseq.nix | 26 ++++++++++++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 modules/programs/logseq.nix diff --git a/modules/profiles/desktop.nix b/modules/profiles/desktop.nix index 962c48b..63a09b3 100644 --- a/modules/profiles/desktop.nix +++ b/modules/profiles/desktop.nix @@ -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 diff --git a/modules/programs/default.nix b/modules/programs/default.nix index 3033d19..e72d357 100644 --- a/modules/programs/default.nix +++ b/modules/programs/default.nix @@ -22,6 +22,7 @@ ./kakoune.nix ./kitty.nix ./ledger + ./logseq.nix ./python.nix ./rofi ./spotify.nix diff --git a/modules/programs/logseq.nix b/modules/programs/logseq.nix new file mode 100644 index 0000000..7d6fc03 --- /dev/null +++ b/modules/programs/logseq.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"; + }; +}