Commit 9c4e0fcc authored by Christopher League's avatar Christopher League
Browse files

system update script

parent 640ec997
......@@ -58,6 +58,7 @@ in
tmux
firefox
atom
(pkgs.callPackage ./update.nix {})
];
};
}
{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
''
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment