remove --impure from upd.py

now that I'm not on xonsh, my config is no longer known impure, and I'd
like warnings when I do something unpure
This commit is contained in:
cswimr 2025-02-04 13:32:04 -06:00
parent 1eb581b32d
commit 17a8f0e500
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087

View file

@ -84,8 +84,6 @@ def _upd(
)
run(["rm", "-rf", ".vscode/extensions"], cwd="/home/cswimr")
print(f"{c.BLUE}Rebuilding {c.YELLOW}NixOS{c.BLUE} configuration{c.END}")
# TODO: Remove --impure once the Starship module is merged - see ../../nixos/shell.nix for more information
extra_args.append("--impure")
if "--impure" in extra_args:
print(f"{c.RED}WARNING: The --impure flag is set!{c.END}")
run(["sudo", "nixos-rebuild", subcommand, *extra_args], cwd=path)