From a5a28c31cb529173195cfe770ba1acc19643d831 Mon Sep 17 00:00:00 2001 From: Patrick Date: Sun, 3 Nov 2024 21:50:18 +0100 Subject: [PATCH] fix: only enable dev shell start for user --- users/patrick/dev.nix | 10 +++++----- users/patrick/programs/zsh/default.nix | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/users/patrick/dev.nix b/users/patrick/dev.nix index 527a146..03ea1e9 100644 --- a/users/patrick/dev.nix +++ b/users/patrick/dev.nix @@ -20,11 +20,6 @@ lib.optionalAttrs (!minimal) { services.nixseparatedebuginfod.enable = true; environment = { enableDebugInfo = true; - shellInit = '' - gpg-connect-agent /bye - export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) - umask 077 - ''; }; documentation = { dev.enable = true; @@ -33,4 +28,9 @@ lib.optionalAttrs (!minimal) { info.enable = false; nixos.enable = false; }; + hm.programs.zsh.initExtra = '' + gpg-connect-agent /bye + export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) + umask 077 + ''; } diff --git a/users/patrick/programs/zsh/default.nix b/users/patrick/programs/zsh/default.nix index 771329b..72abf09 100644 --- a/users/patrick/programs/zsh/default.nix +++ b/users/patrick/programs/zsh/default.nix @@ -39,7 +39,6 @@ zle -N history-beginning-search-backward-end history-search-end zle -N history-beginning-search-forward-end history-search-end fi - ''; plugins = [ {