# rebuild and switch
sudo nixos-rebuild switch --flake .#matax-1 #use hostname here
# build and test
nix build .#nixosConfigurations.matax-1.config.system.build.toplevel --show-trace# Clone the repository
git clone https://github.com/bahrom04/nix-config.git
# Partition disks regarding to configuration
# Replace ? with available hostname
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode disko ./hosts/?/disk-configuration.nix
# Install using flake configurations on top of partitioned disks
# Replace ? with available hostname
sudo nixos-install --flake .#?nix fmt .
nix flake check --all-systems --show-tracenix develop
EDITOR=vim sops ./secrets/secrets.yaml