Skip to content

Commit d9bcbd5

Browse files
committed
Trying logseq instead of org-roam :|
1 parent 3b9eea1 commit d9bcbd5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

profiles/work/configuration.nix

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,27 @@
3838
nix.extraOptions = ''
3939
experimental-features = nix-command flakes
4040
'';
41+
nixpkgs.overlays = [
42+
(
43+
final: prev: {
44+
logseq = prev.logseq.overrideAttrs (oldAttrs: {
45+
postFixup = ''
46+
makeWrapper ${prev.electron_27}/bin/electron $out/bin/${oldAttrs.pname} \
47+
--set "LOCAL_GIT_DIRECTORY" ${prev.git} \
48+
--add-flags $out/share/${oldAttrs.pname}/resources/app \
49+
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \
50+
--prefix LD_LIBRARY_PATH : "${prev.lib.makeLibraryPath [ prev.stdenv.cc.cc.lib ]}"
51+
'';
52+
});
53+
}
54+
)
55+
];
56+
57+
58+
# logseq
59+
nixpkgs.config.permittedInsecurePackages = [
60+
"electron-27.3.11"
61+
];
4162

4263
# wheel group gets trusted access to nix daemon
4364
nix.settings.trusted-users = [ "@wheel" ];
@@ -87,6 +108,7 @@
87108
# System packages
88109
environment.systemPackages = with pkgs; [
89110
vim
111+
logseq
90112
wget
91113
zsh
92114
git

0 commit comments

Comments
 (0)