Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christopher League
nixvm
Commits
9c4e0fcc
Commit
9c4e0fcc
authored
Dec 20, 2018
by
Christopher League
Browse files
system update script
parent
640ec997
Changes
2
Hide whitespace changes
Inline
Side-by-side
vm/desktop.nix
View file @
9c4e0fcc
...
...
@@ -58,6 +58,7 @@ in
tmux
firefox
atom
(
pkgs
.
callPackage
./update.nix
{})
];
};
}
vm/update.nix
0 → 100644
View file @
9c4e0fcc
{
pkgs
,
...
}:
pkgs
.
writeShellScriptBin
"liucs-update"
''
# run as root
[[ $(id -un) == root ]] || {
exec sudo -H $0 "$@"
}
nix-channel --update liucs --option tarball-ttl 0
nixos-rebuild switch
''
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment