mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-18 22:55:52 +05:30
Trying logseq instead of org-roam :|
This commit is contained in:
parent
3b9eea143e
commit
d9bcbd5f44
|
@ -38,6 +38,27 @@
|
|||
nix.extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
nixpkgs.overlays = [
|
||||
(
|
||||
final: prev: {
|
||||
logseq = prev.logseq.overrideAttrs (oldAttrs: {
|
||||
postFixup = ''
|
||||
makeWrapper ${prev.electron_27}/bin/electron $out/bin/${oldAttrs.pname} \
|
||||
--set "LOCAL_GIT_DIRECTORY" ${prev.git} \
|
||||
--add-flags $out/share/${oldAttrs.pname}/resources/app \
|
||||
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \
|
||||
--prefix LD_LIBRARY_PATH : "${prev.lib.makeLibraryPath [ prev.stdenv.cc.cc.lib ]}"
|
||||
'';
|
||||
});
|
||||
}
|
||||
)
|
||||
];
|
||||
|
||||
|
||||
# logseq
|
||||
nixpkgs.config.permittedInsecurePackages = [
|
||||
"electron-27.3.11"
|
||||
];
|
||||
|
||||
# wheel group gets trusted access to nix daemon
|
||||
nix.settings.trusted-users = [ "@wheel" ];
|
||||
|
@ -87,6 +108,7 @@
|
|||
# System packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
logseq
|
||||
wget
|
||||
zsh
|
||||
git
|
||||
|
|
Loading…
Reference in a new issue