Make doom sessionVariable setting a bit more nix-y, add to Hyprland env
as well
This commit is contained in:
parent
557a020052
commit
cfee5dd4ec
|
@ -1,8 +1,8 @@
|
|||
{ pkgs, inputs, ... }:
|
||||
{ config, pkgs, inputs, ... }:
|
||||
let
|
||||
sessionVariables = {
|
||||
DOOMLOCALDIR = "$HOME/.local/share/doomemacs";
|
||||
DOOMPROFILELOADFILE = "$DOOMLOCALDIR/load.el";
|
||||
sessionVariables = rec {
|
||||
DOOMLOCALDIR = "${config.home.homeDirectory}/.local/share/doomemacs";
|
||||
DOOMPROFILELOADFILE = "${DOOMLOCALDIR}/load.el";
|
||||
};
|
||||
in {
|
||||
xdg.configFile.emacs.source = inputs.doom-emacs;
|
||||
|
|
|
@ -16,6 +16,9 @@
|
|||
env = QT_QPA_PLATFORM=wayland;xcb
|
||||
env = QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
||||
env = MOZ_ENABLE_WAYLAND=1
|
||||
env = DOOMLOCALDIR=${config.home.sessionVariables.DOOMLOCALDIR};
|
||||
env = DOOMPROFILELOADFILE=${config.home.sessionVariables.DOOMPROFILELOADFILE};
|
||||
|
||||
|
||||
exec-once=configure-gtk
|
||||
|
||||
|
|
Loading…
Reference in a new issue