1
0
mirror of https://git.oat.zone/dark-firepit/dotfiles synced 2026-07-21 22:14:49 +02:00
Files
Jill "oatmealine" Monoids e112a4ba45 mass changes commit
2026-06-22 13:08:26 +02:00

8 lines
352 B
Bash
Executable File

#!/usr/bin/env bash
set -e
cd "$(dirname "$0")"
doas chmod o+x /srv/minecraft -R # god help me
deriv=$(NIXPKGS_ALLOW_UNFREE=1 nix build -v --no-link --print-out-paths path:.#nixosConfigurations."$(hostname)".config.system.build.toplevel --impure)
doas nix-env -p /nix/var/nix/profiles/system --set $deriv
doas $deriv/bin/switch-to-configuration switch