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.
 
 
 
 
 
Andreas Zweili b8a82d1b58 Update flake 2 days ago
custom fix vterm keybinding 4 weeks ago
hardware Add explicit support for DVD and BluRay 1 month ago
home-manager Don't ensure mu4e 2 weeks ago
lib Clean up the libs 4 weeks ago
modules Allow ping on all systems 3 weeks ago
scripts Add a script to install new systems 3 weeks ago
secrets@5e8acd3f4b Update packages 2 weeks ago
systems Add comments 3 weeks ago
.envrc extend the development environment 7 months ago
.gitignore Remove the variables.el file 5 months ago
.gitmodules remove the nixos-hardware submodule 10 months ago
LICENSE Initial commit 11 months ago
README.md Update README 3 weeks ago
flake.lock Update flake 2 days ago
flake.nix Add loki-test 3 weeks ago
requirements.txt rename requirements 10 months ago
shell.nix extend the development environment 7 months ago

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.
  1. ./scripts/install_new_vm.sh
  2. Provide the required information and wait until the script is finished.
  3. Reboot and profit!

Raspberry Pi installation

  1. Download the image from: https://hydra.nixos.org/job/nixos/release-22.05/nixos.sd_image.aarch64-linux
  2. Extract it with: unzstd nixos-sd-image-*-aarch64-linux.img.zst
  3. Flash it to the SD card with sudo dd if=$(ls nixos-sd-image-*-aarch64-linux.img) of=/dev/mmcblk0 bs=4M
  4. After booting create a password for the nixos user.
  5. SSH into the system.
  6. curl https://git.2li.ch/Nebucatnetzer/nixos/archive/master.tar.gz | tar xz
  7. sudo cp nixos/systems/raspi4/init_config.nix /etc/nixos/configuration.nix
  8. sudo nixos-rebuild switch
  9. Mount the FIRMWARE partition sudo mount /dev/disk/by-label/FIRMWARE /mnt and make sure that your config.txt looks like ./systems/raspi4/config.txt
  10. Install the system ./scripts/install_new_system.sh

x86 installation

  1. curl https://git.2li.ch/Nebucatnetzer/nixos/archive/master.tar.gz | tar xz
  2. cd nixos && nix-shell
  3. sudo python3 scripts/format-disk.py
  4. 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

  1. scripts/install-home-manager.sh