Some "nix stuff" repository:
- Disko
- NixOS
- Home-manager
- Stylix
- AGS
- Update
./settings.nix
- Boot with NixOS USB drive
- Make disk partitioning with disko:
sudo nix 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.nix
Disko already defines filesystems, so you need to remove redundant defines
- Install NixOS itself:
sudo nixos-install --flake .#nixos
With 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 --flake ~/.dotfiles --extra-experimental-features 'nix-command flakes'
Special thanks to Nikita Zheleztsov (Serpentian) and his AlfheimOS for being a starting-point of this repository. It was so hard to find a good NixOS configuration with custom SOTA status bar such as ags and Hyprland window manager.