From 0fc69ef8d3f12b4c3aece0078f3aa81821a3c0c4 Mon Sep 17 00:00:00 2001 From: caem Date: Sun, 9 Jun 2024 22:46:31 +0200 Subject: [PATCH] Move ZDOTDIR to the general zsh home file --- users/hu/packages/zsh/zsh-home.nix | 4 ++++ users/hu/packages/zsh/zsh.nix | 2 +- users/i/home-manager/home.nix | 3 +-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/users/hu/packages/zsh/zsh-home.nix b/users/hu/packages/zsh/zsh-home.nix index 3eab47c..1fb9ab7 100644 --- a/users/hu/packages/zsh/zsh-home.nix +++ b/users/hu/packages/zsh/zsh-home.nix @@ -11,6 +11,10 @@ thefuck ]; + home.sessionVariables = { + ZDOTDIR = "${config.xdg.configHome}/zsh"; + }; + home.file."${config.xdg.configHome}/zsh/conf.d" = { source = ./config/conf.d; recursive = true; diff --git a/users/hu/packages/zsh/zsh.nix b/users/hu/packages/zsh/zsh.nix index d6d564a..9ba2c0b 100644 --- a/users/hu/packages/zsh/zsh.nix +++ b/users/hu/packages/zsh/zsh.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ ... }: { programs.zsh.enable = true; diff --git a/users/i/home-manager/home.nix b/users/i/home-manager/home.nix index aaacdfa..127e4c3 100644 --- a/users/i/home-manager/home.nix +++ b/users/i/home-manager/home.nix @@ -1,4 +1,4 @@ -{ config, ... }: +{ ... }: { home.username = "i"; @@ -11,7 +11,6 @@ home.sessionVariables = { EDITOR = "nvim"; - ZDOTDIR = "${config.xdg.configHome}/zsh"; }; imports = [