From e6cf90004c97032bf3675a2f704a909937aa28e9 Mon Sep 17 00:00:00 2001 From: James Coleman Date: Mon, 12 Aug 2024 18:03:51 -0500 Subject: [PATCH] Add start of readme. --- .gitmodules | 3 +++ README.md | 18 ++++++++++++++++++ dotfiles | 2 +- 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .gitmodules create mode 100644 README.md diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..554a761 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "dotfiles"] + path = dotfiles + url = https://github.com/GRMrGecko/dotfiles.git diff --git a/README.md b/README.md new file mode 100644 index 0000000..8dd8e68 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# nixos +These are my configurations for nixos. You are free to use it, however it may be best for you to fork and make your own. + +## Installing +In my experience, you need a larger disk size for the nix store on the installer than is created. As such, I use a NFS mount with a swap file. If you are installing using an USB stick, you can probably place a swap file there. + +```bash +nix-shell -p git nfs-utils +mkdir /mnt/merged +mount.nfs 10.0.0.5:/mnt/merged /mnt/merged +mkdir /mnt/merged/nixos-tmp +fallocate -l 30G /mnt/merged/nixos-tmp/swap +chmod 600 /mnt/merged/nixos-tmp/swap +mkswap /mnt/merged/nixos-tmp/swap +swapon /mnt/merged/nixos-tmp/swap +mount -o remount,size=20G,noatime /nix/.rw-store +git clone --recursive https://github.com/GRMrGecko/nixos.git +``` \ No newline at end of file diff --git a/dotfiles b/dotfiles index 3c00685..5a733b2 160000 --- a/dotfiles +++ b/dotfiles @@ -1 +1 @@ -Subproject commit 3c006855689bcaeb401e2b52c979ce4c57cd8fd5 +Subproject commit 5a733b2c15c0b6937ece034453e5c232e4c8e5c4