From 885af08edef3eede81101d4303e3a025dc078449 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 16 Jul 2015 19:44:44 +0200 Subject: cleanup, rebuild-system --- rebuild-system | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 rebuild-system (limited to 'rebuild-system') diff --git a/rebuild-system b/rebuild-system new file mode 100644 index 0000000..8f116e3 --- /dev/null +++ b/rebuild-system @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +if [[ "$USER" != "root" ]]; then + exec sudo -- $0 $@ +fi + +path=/etc/nixos + +git -C $path pull && \ + git -C $path submodule update && \ + nixos-rebuild $@ -- cgit v1.2.3