Skip to content

jmpunkt/nixos-conf

Repository files navigation

Usage

System

Local

Building the system using the provided flake.

nixos-rebuild switch --flake <PATH_TO_GIT_REPO>#

Remote

nixos-rebuild --flake <PATH_TO_GIT_REPO>#mymachine \
  --target-host mymachine-hostname --build-host localhost \
  switch

Manual

sh build.sh
doas nix-env -p /nix/var/nix/profiles/system --set ./result
doas result/bin/switch-to-configuration boot

After BIOS Update

After an BIOS update, the Linux Bootmanager might be deleted. In order to restore it, follow the instructions.

Boot into the UEFI version of the LiveCD, otherwise it will not work.

sudo mount /dev/.. /mnt
sudo mount /dev/.. /mnt/boot/efi
sudo nixos-enter
bootctl install
exit
sudo umount /mnt/boot/efi
sudo umount /mnt
reboot

ISO

Build the ISO from the Git Repo.

nix build <PATH_TO_GIT_REPO>#iso

Build the ISO from the pinned path.

nix build self#iso

Shell

Nix shell without overlay (pure Nixpkgs).

nix shell nixpkgs#<pkg>

Nix shell with overlay, including jmpunkt prefix.

nix shell self#<pkg>

Keyboard

sh qmk/flash.sh

Enter password for doas. Then enter flash mode on keyboard.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published