From 3bd7f1fffe99a49dec5611e9325036277822bcff Mon Sep 17 00:00:00 2001 From: Oliver Davies <oliver@oliverdavies.dev> Date: Tue, 18 Mar 2025 16:07:04 +0000 Subject: [PATCH] Move .xinitrc --- nix/modules/home-manager/desktop/dwm.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nix/modules/home-manager/desktop/dwm.nix b/nix/modules/home-manager/desktop/dwm.nix index 9092f0fc..a6043c89 100644 --- a/nix/modules/home-manager/desktop/dwm.nix +++ b/nix/modules/home-manager/desktop/dwm.nix @@ -12,7 +12,7 @@ with lib; config = mkIf config.homeManagerModules.dwm.enable { home = { - file.".xinitrc".text = '' + file."${config.home.sessionVariables.XINITRC}".text = '' systemctl --user import-environment DISPLAY copyq & @@ -26,6 +26,10 @@ with lib; exec dwm ''; + sessionVariables = { + XINITRC = "${config.xdg.configHome}/X11/xinitrc"; + }; + packages = with pkgs; [ dunst poweralertd