diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-07-16 19:44:44 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-07-16 19:44:44 +0200 |
commit | 885af08edef3eede81101d4303e3a025dc078449 (patch) | |
tree | 2f5460b5cf387fec5c92f77afd07c32ed4bd265b /rebuild-system | |
parent | 5ffaa3126e1a35309a09d5bd356dbe363de91d88 (diff) | |
download | utils-885af08edef3eede81101d4303e3a025dc078449.tar utils-885af08edef3eede81101d4303e3a025dc078449.tar.gz utils-885af08edef3eede81101d4303e3a025dc078449.tar.bz2 utils-885af08edef3eede81101d4303e3a025dc078449.tar.xz utils-885af08edef3eede81101d4303e3a025dc078449.zip |
cleanup, rebuild-system
Diffstat (limited to 'rebuild-system')
-rw-r--r-- | rebuild-system | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/rebuild-system b/rebuild-system new file mode 100644 index 0000000..8f116e3 --- /dev/null +++ b/rebuild-system | |||
@@ -0,0 +1,11 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
3 | if [[ "$USER" != "root" ]]; then | ||
4 | exec sudo -- $0 $@ | ||
5 | fi | ||
6 | |||
7 | path=/etc/nixos | ||
8 | |||
9 | git -C $path pull && \ | ||
10 | git -C $path submodule update && \ | ||
11 | nixos-rebuild $@ | ||