From f4461c91e7b62b85f63f27fa5bb543d7bc0a17ec Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Sun, 19 Sep 2021 21:25:23 -0400 Subject: [PATCH] fix: environment access is not allowed in hm profiles --- profiles/develop/common.nix | 2 +- profiles/develop/shells/zsh.nix | 3 +++ users/profiles/shells/bash.nix | 2 -- users/profiles/shells/fish.nix | 2 -- users/profiles/shells/zsh.nix | 5 +---- 5 files changed, 5 insertions(+), 9 deletions(-) create mode 100644 profiles/develop/shells/zsh.nix diff --git a/profiles/develop/common.nix b/profiles/develop/common.nix index 8046f52..b18b7f8 100644 --- a/profiles/develop/common.nix +++ b/profiles/develop/common.nix @@ -1 +1 @@ -{ imports = [ ]; } +{ imports = [ ./shells/zsh.nix ]; } diff --git a/profiles/develop/shells/zsh.nix b/profiles/develop/shells/zsh.nix new file mode 100644 index 0000000..489d969 --- /dev/null +++ b/profiles/develop/shells/zsh.nix @@ -0,0 +1,3 @@ +{ ... }: { + environment.pathsToLink = [ "/share/zsh" ]; +} diff --git a/users/profiles/shells/bash.nix b/users/profiles/shells/bash.nix index 90f4b27..5dcfbe2 100644 --- a/users/profiles/shells/bash.nix +++ b/users/profiles/shells/bash.nix @@ -7,6 +7,4 @@ starship.enableBashIntegration = true; }; - - config.environment.shells = with pkgs; [ bashInteractive ]; } diff --git a/users/profiles/shells/fish.nix b/users/profiles/shells/fish.nix index 24fd90e..cd11d5c 100644 --- a/users/profiles/shells/fish.nix +++ b/users/profiles/shells/fish.nix @@ -8,6 +8,4 @@ starship.enableFishIntegration = lib.mkIf config.programs.starship.enable true; }; - - config.environment.shells = [ pkgs.fish ]; } diff --git a/users/profiles/shells/zsh.nix b/users/profiles/shells/zsh.nix index c00e6b7..9352145 100644 --- a/users/profiles/shells/zsh.nix +++ b/users/profiles/shells/zsh.nix @@ -60,8 +60,5 @@ starship.enableZshIntegration = lib.mkIf config.programs.starship.enable true; }; - config.environment = { - pathsToLink = [ "/share/zsh" ]; - shells = [ pkgs.zsh ]; - }; + environment.pathsToLink = [ "/share/zsh" ]; }