1
1
Fork 0
nixos/options/custom/scripts/rebuild.sh

11 lines
185 B
Bash
Raw Normal View History

#! /usr/bin/env bash
# Rebuild local flake configuration
cd /etc/nixos || exit 1
nix run .#genflake flake.nix &&
sleep 0.1 &&
git add . &&
sudo nixos-rebuild --show-trace "$@"