fix: environment access is not allowed in hm profiles

This commit is contained in:
Infinidoge 2021-09-19 21:25:23 -04:00
parent f9f905a771
commit f4461c91e7
5 changed files with 5 additions and 9 deletions

View file

@ -1 +1 @@
{ imports = [ ]; } { imports = [ ./shells/zsh.nix ]; }

View file

@ -0,0 +1,3 @@
{ ... }: {
environment.pathsToLink = [ "/share/zsh" ];
}

View file

@ -7,6 +7,4 @@
starship.enableBashIntegration = true; starship.enableBashIntegration = true;
}; };
config.environment.shells = with pkgs; [ bashInteractive ];
} }

View file

@ -8,6 +8,4 @@
starship.enableFishIntegration = lib.mkIf config.programs.starship.enable true; starship.enableFishIntegration = lib.mkIf config.programs.starship.enable true;
}; };
config.environment.shells = [ pkgs.fish ];
} }

View file

@ -60,8 +60,5 @@
starship.enableZshIntegration = lib.mkIf config.programs.starship.enable true; starship.enableZshIntegration = lib.mkIf config.programs.starship.enable true;
}; };
config.environment = { environment.pathsToLink = [ "/share/zsh" ];
pathsToLink = [ "/share/zsh" ];
shells = [ pkgs.zsh ];
};
} }