Make sure you have home-manager installed. If not, run the command nix-shell -p home-manager
Make sure the experimental features "nix-command" and "flakes" are enabled
Run home-manager switch --flake ~/.config/home-manager. There should be no errors
Uncomment the catppuccin options at the end of the home.nix file
Run home-manager switch --flake ~/.config/home-manager again
Expected Result
Home-manager is set, Alacritty is installed and the catppuccin theme is set with no errors
Actual Result
Home-manager is set with no errors, Alacritty is installed, but home-manager doesn't recognize catppuccin options, throwing the following error message:
error:
… while evaluating a branch condition
at /nix/store/4p0avw1s3vf27hspgqsrqs37gxk4i83i-source/lib/lists.nix:125:9:
124| fold' = n:
125| if n == len
| ^
126| then nul
… while calling the 'length' builtin
at /nix/store/4p0avw1s3vf27hspgqsrqs37gxk4i83i-source/lib/lists.nix:123:13:
122| let
123| len = length list;
| ^
124| fold' = n:
(stack trace truncated; use '--show-trace' to show the full trace)
error: The option `programs.alacritty.catppuccin.flavour' does not exist. Definition values:
- In `/nix/store/rx03f1hl4y9lz539wpw1llvg2gwdx15g-source/home.nix': "mocha"
Steps to reproduce
Add this
flake.nix
file to~/.config/home-manager
and replace the username and hostname with your ownflake.lock
file to~/.config/home-manager
Add this
home.nix
file to~/.config/home-manager
and make sure to replace the username with your ownnix-shell -p home-manager
home-manager switch --flake ~/.config/home-manager
. There should be no errorshome.nix
filehome-manager switch --flake ~/.config/home-manager
againExpected Result
Home-manager is set, Alacritty is installed and the catppuccin theme is set with no errors
Actual Result
Home-manager is set with no errors, Alacritty is installed, but home-manager doesn't recognize catppuccin options, throwing the following error message: