Skip to content

Commit

Permalink
Add paths to environment, based on if the shells are enabled even
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoruto committed Nov 8, 2024
1 parent 5bfcbe8 commit 90f0e69
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion modules/nixos/environment/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
# nushell
# zsh
# ];
pathsToLink = [ "/share/zsh" ];
# pathsToLink = [
# "/share/zsh"
# "/share/fish"
# ];
};
}
7 changes: 7 additions & 0 deletions modules/nixos/user.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,12 @@ in
shells = [
config.users.users.${username}.shell
];
pathsToLink =
lib.optionals config.home-manager.users.${username}.zsh.enable [
"/share/zsh"
]
++ lib.optionals config.home-manager.users.${username}.fish.enable [
"/share/fish"
];
};
}

0 comments on commit 90f0e69

Please sign in to comment.