Available machines: feanor
, melian
(hostname
must match).
nix-shell -p git curl
git clone [email protected]:fnune/home.nix.git ~/.home.nix
sudo nixos-rebuild switch --flake ".#$(hostname)"
nix run . -- build --flake ".fausto#$(hostname)"
nix run . -- switch --flake ".fausto#$(hostname)"
After that, you can start using these instead:
sudo nixos-rebuild switch --flake ".#$(hostname)"
home-manager build --flake ".fausto#$(hostname)"
home-manager switch --flake ".fausto#$(hostname)"
Alternatively, you can use nh
:
nh os switch
nh home switch