Based on Misterio77's nix-starter-configs.
nix-shell -p git
git clone https://github.com/taj-ny/nix-config
cd nix-config
export DISK=/dev/sda
export DISK_LAYOUT=disks/luks-btrfs-impermanence-swapfile.nix
export SWAPSIZE=16G
export CONFIGURATION=vm
sudo -E ./install.sh
You will be prompted for a root password. You can set it to anything, it's going to get deleted anyways because of impermanence. Root login is disabled by default.
After the system reboots, run:
cd /nix/config
nix develop
./deploy.sh -h
If using KDE, log out and log back in.
/nix/config/deploy.sh -hnu
h
- deploy home-manager configuration for the current user and hostn
- deploy nixos configuration for the current hostu
- update flake, exit if flake.lock doesn't change