the home of my dotfiles and nix configuration files
fixes bug where remote sessions don't have an updated TERMINFO binary that contains the definition for my current terminal, resulting in having a broken prompt |
||
|---|---|---|
| hosts | ||
| modules | ||
| stow | ||
| conf.sh | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| README.md | ||
my little nix system
installation
linux - desktop
- Boot up NixOS live iso on a system.
- Clone flake
- Make a folder for the system under hosts/
- Run
nixos-generate-config --dir hosts/HOSTNAME - Set LUKS encryption passphrase via
sudo nano /tmp/secret.key - Run disko
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy,format,mount /path/to/disko-config.nix - Copy over flake directory to new system
- Install system with
sudo nixos-install --flake .#HOSTNAME- set a password for root - Reboot into new system.
- Open a terminal and run
passwd - Log into normal user and configure networking via
nmtui - Apply dotfiles via
stow stowin the base of the dotfiles directory. - 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.
- Generate secureboot signing keys with
sudo nix run nixpkgs#sbctl create-keys - Rebuild the system WITH the secureboot module.
- Run
sudo sbctl verifyto check if SOME of the files are signed. - Reboot your system, in the UEFI enable onboarding secureboot keys, usually a setting called 'Reset to setup mode'.
- Boot into your NixOS system and run
sudo sbctl enroll-keys --microsoftto enroll your keys. - Reboot into your UEFI again and enable secure boot.
macOS
- 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)"
- Install Nix flake to system.
nix run nix-darwin/master#darwin-rebuild -- switch - Reboot
- Install OpenUTAU
https://github.com/stakira/OpenUtau/releases/latest/download/OpenUtau-osx-x64.dmg - 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