From a373a06bf0aff46c0b71fc55f8284d79b5bb6561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Sun, 2 Jun 2024 16:57:11 +0200 Subject: [PATCH 1/2] Sun Jun 2 04:52:47 PM CEST 2024 --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..1429341 --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +# Dotfiles + +## NixOS + +Install instructions: + +```bash +sudo parted /dev/nvme0n1 -- mklabel gpt +sudo parted /dev/nvme0n1 -- mkpart ESP fat32 1MB 512MB +sudo parted /dev/nvme0n1 -- mkpart root ext4 512MB 100% +sudo parted /dev/nvme0n1 -- set 1 esp on + +sudo mkfs.fat -F 32 -n BOOT /dev/nvme0n1p1 +sudo mkfs.ext4 -L NixOS /dev/nvme0n1p2 + +sudo mount /dev/disk/by-label/NixOS /mnt +sudo mkdir -p /mnt/boot +sudo mount -o umask=077 /dev/disk/by-label/BOOT /mnt/boot +sudo nixos-generate-config --root /mnt + +nix-shell -p git vim +git clone https://git.thomasave.be/thomasave/Dotfiles +sudo nixos-install --impure --flake ./Dotfiles#Kell +sudo reboot +``` From 05b773a14385ff699acf5ec55b77cee4d0ca9423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Sun, 2 Jun 2024 17:08:38 +0200 Subject: [PATCH 2/2] Sun Jun 2 04:52:47 PM CEST 2024 --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 1429341..12e3fd3 100644 --- a/README.md +++ b/README.md @@ -21,5 +21,8 @@ sudo nixos-generate-config --root /mnt nix-shell -p git vim git clone https://git.thomasave.be/thomasave/Dotfiles sudo nixos-install --impure --flake ./Dotfiles#Kell +mv ./Dotfiles /mnt/home/user/.dotfiles +sudo ln -s /home/user/.dotfiles /mnt/etc/nixos + sudo reboot ```