No description
Find a file
2025-05-10 18:01:54 +10:00
hosts Revert "nijika: change hardware graphics drivers" 2025-05-04 20:45:25 +10:00
modules minecraft: use docker image for forge 1.19.2 server 2025-05-10 18:00:34 +10:00
stow fastfetch: change ascii art to madoka 2025-05-06 20:44:15 +10:00
conf.sh termux: update and upgrade non-interactively when using script 2025-05-03 16:34:35 +10:00
flake.lock nix: update flake sources to 698214a 2025-05-10 16:48:50 +10:00
flake.nix bocchi: remove all services except minecraft server 2025-05-10 18:01:54 +10:00
LICENSE chore: add BSD0 license 2025-05-03 16:34:35 +10:00
README.md chore: add installation guide 2025-05-03 16:34:35 +10:00

my little nix system

installation

linux - desktop

  1. Boot up NixOS live iso on a system.
  2. Clone flake
  3. Make a folder for the system under hosts/
  4. Run nixos-generate-config --dir hosts/HOSTNAME
  5. Set LUKS encryption passphrase via sudo nano /tmp/secret.key
  6. Run disko sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy,format,mount /path/to/disko-config.nix
  7. Copy over flake directory to new system
  8. Install system with sudo nixos-install --flake .#HOSTNAME - set a password for root
  9. Reboot into new system.
  10. Open a terminal and run passwd
  11. Log into normal user and configure networking via nmtui
  12. Apply dotfiles via stow stow in the base of the dotfiles directory.
  13. Download a wallpaper and apply it via matugen image

Secure boot

If a system has a secure boot, install the system WITHOUT the secureboot module. Once the steps above have been completed return here.

  1. Generate secureboot signing keys with sudo nix run nixpkgs#sbctl create-keys
  2. Rebuild the system WITH the secureboot module.
  3. Run sudo sbctl verify to check if SOME of the files are signed.
  4. Reboot your system, in the UEFI enable onboarding secureboot keys, usually a setting called 'Reset to setup mode'.
  5. Boot into your NixOS system and run sudo sbctl enroll-keys --microsoft to enroll your keys.
  6. Reboot into your UEFI again and enable secure boot.

macOS

  1. Install xcode developer tools, determinate nix and brew.
xcode-select --install
curl -fsSL https://install.determinate.systems/nix | sh -s -- install --determinate
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Install Nix flake to system. nix run nix-darwin/master#darwin-rebuild -- switch
  2. Reboot
  3. Install OpenUTAU https://github.com/stakira/OpenUtau/releases/latest/download/OpenUtau-osx-x64.dmg
  4. Configure non-automated settings
  • set accent colour
  • set display to be spacious
  • customise spotlight settings
  • disable bluetooth
  • enable firewall
  • set wallpaper
  • enable switching workspace keybinds