nixos configurations
Go to file
2024-11-16 14:32:21 -06:00
dotfiles@8ae344b2ca Update dotfiles 2024-08-12 18:13:06 -05:00
hosts Updated Wed Oct 9 11:07:56 PM CDT 2024 2024-10-09 23:07:56 -05:00
modules Updated Wed Oct 9 11:07:56 PM CDT 2024 2024-10-09 23:07:56 -05:00
profiles Add merged automount. 2024-08-12 19:24:57 -05:00
users Add flatpak support, and upgrade stable to 24.05 2024-06-20 14:34:30 -05:00
.gitignore Initial Config 2024-05-14 09:29:16 -05:00
.gitmodules Add start of readme. 2024-08-12 18:03:51 -05:00
configure.sh Fix config script 2024-08-12 17:14:36 -05:00
flake.lock Update 2024-11-16 2024-11-16 14:32:21 -06:00
flake.nix Update and add more sysctl configs. 2024-09-08 23:30:03 -05:00
home_update.sh Add flatpak support, and upgrade stable to 24.05 2024-06-20 14:34:30 -05:00
install.sh Remove sound config as its no longer used. 2024-08-12 17:18:08 -05:00
README.md Add merged automount. 2024-08-12 19:24:57 -05:00
rebuild.sh Add flatpak support, and upgrade stable to 24.05 2024-06-20 14:34:30 -05:00
rsync.sh Initial Config 2024-05-14 09:29:16 -05:00
settings-default.nix Add serial commands, app image support, home-manager cli, and network manager profile configuration example. 2024-05-22 23:57:13 -05:00
settings-server-example.nix Add serial commands, app image support, home-manager cli, and network manager profile configuration example. 2024-05-22 23:57:13 -05:00
update.sh Add flatpak support, and upgrade stable to 24.05 2024-06-20 14:34:30 -05:00

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 swap file/drive, recommended separate drive from the one being installed to.

Swap example.

mkdir /mnt/usb
mount /dev/sdb1 /mnt/usb
fallocate -l 30G /mnt/usb/swap
chmod 600 /mnt/usb/swap
mkswap /mnt/usb/swap
swapon /mnt/usn/swap
mount -o remount,size=20G,noatime /nix/.rw-store

The install process.

After setting up the extra swap space, clone and enter the nixos repo.

nix-shell -p git
git clone --recursive https://github.com/GRMrGecko/nixos.git
cd nixos/

After you get into the repo, configure the machine to your liking.

./configure.sh

After configuring, install. You can define a tmpdir as the USB drive with TMPDIR=/mnt/usb if you want to reduce load on RAM.

./install.sh --disk main /dev/sda

After install is complete, you can then rsync the nixos dir to the user account on the install:

nix-shell -p rsync
mount -o compress=zstd /dev/mapper/crypted /mnt/hdd
rsync -av /root/nixos/ /mnt/hdd/home/grmrgecko/nixos/
umount /mnt/hdd