mirror of
https://git.oat.zone/dark-firepit/dotfiles
synced 2026-07-21 13:04:49 +02:00
8 lines
352 B
Bash
Executable File
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
|