mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
apply path to all shells
This commit is contained in:
parent
ddd5ef7329
commit
0d5c6448eb
2 changed files with 9 additions and 7 deletions
|
|
@ -1,5 +1,14 @@
|
|||
{ pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
# Nix configuration is managed globally by nix-darwin.
|
||||
# Prevent $HOME nix.conf from disrespecting it.
|
||||
home.file."~/.config/nix/nix.conf".text = "";
|
||||
|
||||
# Global session path for all shells
|
||||
home.sessionPath = lib.mkIf pkgs.stdenv.isDarwin [
|
||||
"/etc/profiles/per-user/$USER/bin"
|
||||
"/nix/var/nix/profiles/system/sw/bin"
|
||||
"/usr/local/bin"
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,4 @@
|
|||
{ pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
home.sessionPath = lib.mkIf pkgs.stdenv.isDarwin [
|
||||
"/etc/profiles/per-user/$USER/bin"
|
||||
"/nix/var/nix/profiles/system/sw/bin"
|
||||
"/usr/local/bin"
|
||||
];
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
autosuggestion.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue