Some "nix stuff" repository:
- Disko
- NixOS
- Home-manager
- Stylix
- Update
./settings.nix - Boot with NixOS USB drive
- Make disk partitioning with disko:
sudo nix --extra-experimental-features "nix-command flakes" run github:nix-community/disko/latest -- \
--mode disko ./profiles/desktop/disk-config.nix
- Update
hardware-configuration.nix:
sudo nixos-generate-config --show-hardware-config > ./profiles/desktop/hardware-configuration.nixDisko already defines filesystems, so you need to remove redundant defines
- Install NixOS itself:
sudo nixos-install --flake .#nixosWith nixos-anywhere
- Update
./settings.nix - Run nixos-anywhere to install system via ssh:
nix run github:nix-community/nixos-anywhere -- \
--generate-hardware-config nixos-generate-config ./profiles/desktop/hardware-configuration.nix --flake .#nixos root@<ip address>Default password for root connection is
ASDzxc123, do not forget to update pass with passwd.
You only need to install home-manager. Moreover, remote installation settings are set up by default.
git clone https://github.com/Ruhrozz/nix.git ~/.dotfiles
nix --extra-experimental-features "nix-command flakes" run github:nix-community/home-manager -- \
switch -b nixhmbak --flake ~/.dotfiles --extra-experimental-features 'nix-command flakes'