86 words
1 minutes
[nix]기본 shell 변경하기

개요#

최근에 nixos를 설치했는데 nixos 특성상 기본 shell을 변경하는 chsh -s 'which zsh' 명령어가 동작하지 않았다.

해결방법#

configuration.nix 파일을 수정하여 기본 shell을 변경할 수 있다.

cd /etc/nixos sudo nvim configuration.nix

configuration.nix 파일을 열어서 user.defaultUserShell을 변경한다.

{ programs.zsh.enable = true; user.defaultUserShell = pkgs.zsh; }
[nix]기본 shell 변경하기
https://yjinheon.netlify.app/posts/05system/nix/system-nix-change_default_shell/
Author
Datamind
Published at
2025-01-23