HASH 6fe560561294
DATE 2025-05-02
SUBJECT docs: install instructions
FILES 2 CHANGED
HASH 6fe560561294
DATE 2025-05-02
SUBJECT docs: install instructions
FILES 2 CHANGED
┌─ .repomixignore ───────────────────────────────────────────────────────────┐
│ diff --git a/.repomixignore b/.repomixignore │
│ index 221341a..828377e 100644 │
│ --- a/.repomixignore │
│ +++ b/.repomixignore │
│ @@ -3,3 +3,6 @@ │
│ **/gruv.nix │
│ .repomixignore │
│ repomix* │
│ +**/qt/* │
│ +**/render-markdown.nix │
│ +**/_code.scss │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ .repomixignore ─────────────────────┐
│ diff --git a/.repomixignore b/.repomixignore │
│ index 221341a..828377e 100644 │
│ --- a/.repomixignore │
│ +++ b/.repomixignore │
│ @@ -3,3 +3,6 @@ │
│ **/gruv.nix │
│ .repomixignore │
│ repomix* │
│ +**/qt/* │
│ +**/render-markdown.nix │
│ +**/_code.scss │
└──────────────────────────────────────────────┘
┌─ docs/installation.md ─────────────────────────────────────────────────────┐
│ diff --git a/docs/installation.md b/docs/installation.md │
│ new file mode 100644 │
│ index 0000000..7b8394b │
│ --- /dev/null │
│ +++ b/docs/installation.md │
│ @@ -0,0 +1,43 @@ │
│ +# Basic install │
│ + │
│ +## Partitioning │
│ + │
│ +Partitioning will depend on the drive you have, here is an example of a simple │
│ +partitioning scheme for a single drive. │
│ + │
│ +```sh │
│ +# what drive we are using │
│ +export D="/dev/vda" │
│ +export D1=$D'1' │
│ +export D2=$D'2' │
│ + │
│ +# size of the swap for example 1GiB swap would be: │
│ +export SWAP=1g │
│ +sudo parted -s $D mklabel gpt mkpart "EFI" fat32 1MiB 513MiB mkpart "NixOS" btrfs │
│ 513MiB 100% set 1 esp on │
│ +sudo mkfs.fat -F 32 $D1 && sudo mkfs.btrfs -f $D2 │
│ + │
│ +sudo mount $D2 -m /mnt │
│ + │
│ +sudo btrfs subvolume create /mnt/root │
│ +sudo btrfs subvolume create /mnt/home │
│ +sudo btrfs subvolume create /mnt/nix │
│ +sudo btrfs subvolume create /mnt/swap │
│ + │
│ +sudo umount /mnt │
│ + │
│ +sudo mount -o subvol=root $D2 -m /mnt │
│ +sudo mount -o subvol=home $D2 -m /mnt/home │
│ +sudo mount -o subvol=nix $D2 -m /mnt/nix │
│ +sudo mount -o subvol=swap $D2 -m /mnt/swap │
│ +sudo mount $D1 -m /mnt/boot │
│ + │
│ +sudo btrfs filesystem mkswapfilee --size $SWAP --uuid clear /mnt/swap/swapfile │
│ +``` │
│ + │
│ +## Installing Nix │
│ + │
│ +```sh │
│ +sudo nixos-generate-conig --root /mnt │
│ +sudo nixos-install │
│ +# done │
│ +``` │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ docs/installation.md ───────────────┐
│ diff --git a/docs/installation.md b/docs/ins │
│ tallation.md │
│ new file mode 100644 │
│ index 0000000..7b8394b │
│ --- /dev/null │
│ +++ b/docs/installation.md │
│ @@ -0,0 +1,43 @@ │
│ +# Basic install │
│ + │
│ +## Partitioning │
│ + │
│ +Partitioning will depend on the drive you h │
│ ave, here is an example of a simple │
│ +partitioning scheme for a single drive. │
│ + │
│ +```sh │
│ +# what drive we are using │
│ +export D="/dev/vda" │
│ +export D1=$D'1' │
│ +export D2=$D'2' │
│ + │
│ +# size of the swap for example 1GiB swap wo │
│ uld be: │
│ +export SWAP=1g │
│ +sudo parted -s $D mklabel gpt mkpart "EFI" │
│ fat32 1MiB 513MiB mkpart "NixOS" btrfs 513Mi │
│ B 100% set 1 esp on │
│ +sudo mkfs.fat -F 32 $D1 && sudo mkfs.btrfs │
│ -f $D2 │
│ + │
│ +sudo mount $D2 -m /mnt │
│ + │
│ +sudo btrfs subvolume create /mnt/root │
│ +sudo btrfs subvolume create /mnt/home │
│ +sudo btrfs subvolume create /mnt/nix │
│ +sudo btrfs subvolume create /mnt/swap │
│ + │
│ +sudo umount /mnt │
│ + │
│ +sudo mount -o subvol=root $D2 -m /mnt │
│ +sudo mount -o subvol=home $D2 -m /mnt/home │
│ +sudo mount -o subvol=nix $D2 -m /mnt/nix │
│ +sudo mount -o subvol=swap $D2 -m /mnt/swap │
│ +sudo mount $D1 -m /mnt/boot │
│ + │
│ +sudo btrfs filesystem mkswapfilee --size $S │
│ WAP --uuid clear /mnt/swap/swapfile │
│ +``` │
│ + │
│ +## Installing Nix │
│ + │
│ +```sh │
│ +sudo nixos-generate-conig --root /mnt │
│ +sudo nixos-install │
│ +# done │
│ +``` │
└──────────────────────────────────────────────┘
[ BACK TO LOG ]
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET