Make doom sessionVariable setting a bit more nix-y, add to Hyprland env

as well
This commit is contained in:
Evie Litherland-Smith 2023-09-13 06:17:51 +01:00
parent 557a020052
commit cfee5dd4ec
2 changed files with 7 additions and 4 deletions

View file

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

View file

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