diff --git a/home/emacs/default.nix b/home/emacs/default.nix index a0d1a057..92602475 100644 --- a/home/emacs/default.nix +++ b/home/emacs/default.nix @@ -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; diff --git a/home/hyprland/config.nix b/home/hyprland/config.nix index cf3a62da..79b5a217 100644 --- a/home/hyprland/config.nix +++ b/home/hyprland/config.nix @@ -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