Skip to content

soulwhisper/nix-config

Repository files navigation

nix-config

built with nix

This repository holds my NixOS configuration. It is fully reproducible and flakes based. Inspired by bjw-s/nix-config.

  • soulwhisper-mba, my macbook configs.
  • nix-dev, devops vm for corp-env.
  • nix-nas, nas vm for corp-env. Homelab ver. using TrueNAS Scale 24.10+. Inspired by Ramblurr/nixcfg#mali.
  • renovate configs and ci, managed by soulwhisper/renovate-config.

Usage

# darwin
## opt. run set-proxy script first
sudo python3 scripts/darwin_set_proxy.py
## build & diff
task nix:darwin-build HOST=soulwhisper-mba
## deploy
task nix:darwin-deploy HOST=soulwhisper-mba
## opt. set default proxy after configs imported
cp scripts/set_proxy.fish ~/.config/fish/conf.d/

# nixos, e.g. nix-nas
## set DNS record then test ssh connections
## cp machineconfig
cp /etc/nixos/hardware-configuration.nix hosts/nix-nas/hardware-configuration.nix
## build & diff
task nix:nixos-build HOST=nix-nas
## deploy
task nix:nixos-deploy HOST=nix-nas