Categories
Tags
AI airflow alias book build clang closure collection commandline config container DB decorator docker draft format functional generic git gradle intellij java JPA k3s k8s kafka kotlin linux loki monitoring msa neovim network nix poetry pointer python reflection shortcut Spring sql system-design testing web zero-copy
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; }