Andreas Zweili 8c68bd9e88 | ||
---|---|---|
custom | ||
hardware | ||
home-manager | ||
lib | ||
modules | ||
scripts | ||
secrets@cd18c6ff4b | ||
systems | ||
.envrc | ||
.gitignore | ||
.gitmodules | ||
LICENSE | ||
README.md | ||
flake.lock | ||
flake.nix | ||
requirements.txt | ||
shell.nix |
README.md
nixos
This repository contains my configuration for my Nixos systems. I don't provide any garantuees that it will work on other systems. In addition some of the scripts required for installation will destroy your data when used.
VM installation
This allows you to setup a VM with minimal effort. However this requires some prerequisites.
- A VM running the minimal NixOS ISO reachable with SSH under nixos@nixos.2li.local.
- The VM runs UEFI.
- You've set a password for the nixos user.
./scripts/install_new_vm.xsh
- Provide the required information and wait until the script is finished.
- Reboot and profit!
Raspberry Pi installation
- Download the image from: https://hydra.nixos.org/job/nixos/release-22.05/nixos.sd_image.aarch64-linux
- Extract it with:
unzstd nixos-sd-image-*-aarch64-linux.img.zst
- Flash it to the SD card with
sudo dd if=$(ls nixos-sd-image-*-aarch64-linux.img) of=/dev/mmcblk0 bs=4M
curl https://git.2li.ch/Nebucatnetzer/nixos/archive/master.tar.gz | tar xz
sudo cp nixos/systems/raspi4/init_config.nix /etc/nixos/configuration.nix
sudo nixos-rebuild switch
x86 installation
curl https://git.2li.ch/Nebucatnetzer/nixos/archive/master.tar.gz | tar xz
cd nixos && nix-shell
sudo python3 scripts/format-disk.py
sudo nixos-install --no-root-passwd --root /mnt --impure --flake .#SYSTEMNAME
Update remote systems
Simply run the script scripts/update_all_systems.xsh
and it will iterate over
all defined systems.
The script requires Xonsh but can be easily adapted to BASH or similar.
Non-Nixos System
scripts/install-home-manager.sh