Hi, Im new to nixos. Fell in love with the way its being declarative and started setting up my machine by following a youtube channel named LibrePhoenix.
After this video, which is setting up home-manager, i wanted to add alias to my rc file, but kept getting error saying “im trying to modify readonly file”.
But my rc files file permission seems 777
lrwxrwxrwx 1 User users 70 Dec 15 09:24 .bashrc -> /nix/store/1xhpnjh9zsfrcdb7bj6762rn7r76cgzl-home-manager-files/.bashrc
lrwxrwxrwx 1 User users 69 Dec 15 09:24 .zshrc -> /nix/store/1xhpnjh9zsfrcdb7bj6762rn7r76cgzl-home-manager-files/.zshrc
- Is this behavior due to home-manager managing my config files & how do i make changes in the rc files going further.
- also i have been used to make common alias in the
.profile
file earlier. when looking into the nixos’s.profile
file, it look like this
> cat .profile
. "/home/User/.nix-profile/etc/profile.d/hm-session-vars.sh"
So if i add common alias inside the .profile file, can it be sourced into bashrc and zshrc files.