nixos configurations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
James Coleman d5b23c1e58 Add merged automount. 4 weeks ago
dotfiles@8ae344b2ca Update dotfiles 4 weeks ago
hosts Add media-pc, and update 4 weeks ago
modules Add merged automount. 4 weeks ago
profiles Add merged automount. 4 weeks ago
users Add flatpak support, and upgrade stable to 24.05 3 months ago
.gitignore Initial Config 4 months ago
.gitmodules Add start of readme. 4 weeks ago
README.md Add merged automount. 4 weeks ago
configure.sh Fix config script 4 weeks ago
flake.lock Add media-pc, and update 4 weeks ago
flake.nix Add flatpak support, and upgrade stable to 24.05 3 months ago
home_update.sh Add flatpak support, and upgrade stable to 24.05 3 months ago
install.sh Remove sound config as its no longer used. 4 weeks ago
rebuild.sh Add flatpak support, and upgrade stable to 24.05 3 months ago
rsync.sh Initial Config 4 months ago
settings-default.nix Add serial commands, app image support, home-manager cli, and network manager profile configuration example. 4 months ago
settings-server-example.nix Add serial commands, app image support, home-manager cli, and network manager profile configuration example. 4 months ago
update.sh Add flatpak support, and upgrade stable to 24.05 3 months ago

README.md

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