Upgrade the NixOS `stateVersion` from 25.05 to 25.11 in all system configuration files and update all nix channel URLs to the 25.11 releases. Adjust Home Manager and terminal module configurations accordingly, clean up duplicated SSH keys, and update LLaMA server command lines. Minor housekeeping changes to package definitions and other configuration files are also included.
81 lines
1.8 KiB
Markdown
Executable File
81 lines
1.8 KiB
Markdown
Executable File
# Description
|
|
|
|
This repository contains the configuration for multiple machines, as well as my home / IDE config (home-manager).
|
|
|
|
```bash
|
|
# Install NixOS
|
|
./bootstrap.sh install --name lin-va-nix-builder
|
|
|
|
# Remote Image Build (NixOS Builder)
|
|
./bootstrap.sh image --name lin-va-rke2 --remote
|
|
|
|
# Home Manager Install
|
|
home-manager switch --flake .#evanreichard@mac-va-mbp-personal
|
|
|
|
# Update Flake
|
|
nix flake update
|
|
```
|
|
|
|
## Manual
|
|
|
|
```bash
|
|
# Install NixOS
|
|
sudo nixos-rebuild switch --flake .#lin-va-mbp-personal
|
|
|
|
# Install NixOS (Remote)
|
|
nix run github:nix-community/nixos-anywhere -- --flake .#lin-cloud-kube1 --target-host \<USER\>@\<IP\>
|
|
|
|
# Build Image
|
|
nix build .#vmwareConfigurations.lin-va-rke2
|
|
```
|
|
|
|
## Nix Darwin
|
|
|
|
```bash
|
|
# Install Nix Without Determinate
|
|
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
|
|
|
|
# Switch Nix Darwin
|
|
sudo nix run nix-darwin#darwin-rebuild -- switch --flake .#mac-va-mbp-personal
|
|
sudo darwin-rebuild switch --flake .#mac-va-mbp-personal
|
|
```
|
|
|
|
## Clean Garbage
|
|
|
|
NOTE: This will remove previous generations
|
|
|
|
```bash
|
|
sudo nix-collect-garbage --delete-old
|
|
nix-collect-garbage --delete-old
|
|
```
|
|
|
|
## Home Manager
|
|
|
|
```bash
|
|
# Update System Channels
|
|
sudo nix-channel --add https://nixos.org/channels/nixpkgs-25.11-darwin nixpkgs
|
|
sudo nix-channel --update
|
|
|
|
# Update Home Manager
|
|
nix-channel --add https://github.com/nix-community/home-manager/archive/release-25.11.tar.gz home-manager
|
|
nix-channel --update
|
|
|
|
# Link Repo
|
|
ln -s /Users/evanreichard/Development/git/personal/nix/home-manager ~/.config/home-manager
|
|
|
|
# Build Home Manager
|
|
home-manager switch
|
|
```
|
|
|
|
### OS Update
|
|
|
|
`/etc/bashrc` may get overridden. To properly load Nix, prepend the following:
|
|
|
|
```bash
|
|
# Nix
|
|
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
|
|
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
|
|
fi
|
|
# End Nix
|
|
```
|