Use disko-install https://github.com/nix-community/disko/blob/master/docs/disko-install.md
disk-name is just a label
sudo nix run 'github:nix-community/disko/latest#disko-install' -- --experimental-features 'nix-command flakes' --flake .#desktop --disk main /dev/sda
{ lib, config, pkgs, ... }:
let
cfg = config.NAME;
in
{
options = {
NAME.enable = lib.mkEnableOption
"enable NAME";
};
config = lib.mkIf cfg.enable {
};
}
just is the only dependency for installing
nix-shell -p just
To install make sure the disk variable is set properly in install-btrfs.sh
then run
just install-nixos-hostname
This formats the disk and installs the filesystems
Next the hardware configuration is replaced with an updated one
Finally nixos is installed
Remeber to update your password
to install home-manager and flatpak
just install-user-zach