nix-config

Apply system configuration

sudo nixos-rebuild switch --flake .#$(hostname)

or

sudo nixos-rebuild switch --flake .#bumblebee

Apply your home configuration

home-manager switch --flake .#$(whoami)@$(hostname)

or

home-manager switch --flake .#fsequeira@bumblebee

# on first run might need to add git to the packages on /etc/nixos/configuration.nix
# and then the commands bellow, after that you can use home-
nix-shell -p git
nix build .#homeConfigurations.fsequeira@bumblebee.activationPackage && ./result/activate

Update flake.lock

nix flake update

Or replace only the specific input, such as home-manager:

nix flake lock --update-input home-manager

debug config

sudo nixos-rebuild switch --flake .#bumblebee --show-trace -L

No such file or directory (when restructuring flake)

sudo nix-store --repair --verify --check-contents