After NixOS installation in your ~/
directory:
- Copy config:
cd .config
git clone git@github.com:VelHRH/nixos-config.git
cd nixos-config/hosts
cp -r nixos <your_hostname>
cd <your_hostname>
cp /etc/nixos/hardware-configuration.nix ./
sudo nixos-rebuild switch --flake ./
home-manager switch --flake ./
-
Adjust flake.nix file. Change
user = "vel";
and{ hostname = "nixos"; stateVersion = "24.11"; }
lines. -
Rebuild:
cd nixos-config
git add .
sudo nixos-rebuild switch --flake .
home-manager switch --flake .