Skip to content

pschmitt's nixos configuration

Notifications You must be signed in to change notification settings

pschmitt/nixos-config

Repository files navigation

pschmitt's nixos book of horrors

Description: tdb.

Deploying a new host

To create a new host:

  1. Add it to flake.nix
  2. Create the config files:
./scripts/init-host-config.sh $NEW_HOST
  1. Update ./tofu/dns-dynamic.tf

  2. Add to /srv/luks-ssh-unlock/docker-compose.yaml (@fnuc)

  3. Deploy:

./tofu/tofu.sh init
./tofu/tofu.sh apply -target=module.nix-${NEW_HOST}

Removing a host

  1. Remove its config from:
  1. Remove from /srv/luks-ssh-unlock/docker-compose.yaml (@fnuc)

HOST_TO_REMOVE=xxx
rm -rf "./host/$HOST_TO_REMOVE" "./tofu/${HOST_TO_REMOVE}.tf"
./secrets/sops-config-gen.sh --github-username pschmitt --auto

Updating custom packages

  • Use just nix-update --list to see the available package attributes.
  • Run just nix-update --package <name> to refresh a single package or omit the flag to sweep all custom packages. Add --build to verify builds or --commit to let nix-update create commits.
  • Packages that need bespoke handling should define a passthru.updateScript alongside the derivation; the helper will use it automatically (disable with --no-update-script). Lingering skips live in pkgs/nix-update.json.
  • The scheduled workflow in .github/workflows/nix-update.yaml runs daily and opens a pull request with automated updates when changes are detected.

About

pschmitt's nixos configuration

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published

Contributors 7