diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-14 18:48:51 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-14 18:48:51 +0200 |
commit | 2968aa8fb03db8c8d27c8a7669fb362efd40c6cc (patch) | |
tree | 48e6fb5389d41d4128bff0a11168fc470230e6c6 /rebuild-system | |
parent | 7782c7fcc926f04a948bdfca79929cad759fca73 (diff) | |
parent | dd28d96d3469a46888ac4e1103818978aa4fc51b (diff) | |
download | utils-2968aa8fb03db8c8d27c8a7669fb362efd40c6cc.tar utils-2968aa8fb03db8c8d27c8a7669fb362efd40c6cc.tar.gz utils-2968aa8fb03db8c8d27c8a7669fb362efd40c6cc.tar.bz2 utils-2968aa8fb03db8c8d27c8a7669fb362efd40c6cc.tar.xz utils-2968aa8fb03db8c8d27c8a7669fb362efd40c6cc.zip |
Merge ymir:.nixpkgs/utils
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 $@ | ||