Evie Litherland-Smith
e170c2c50e
Catch different failure modes of subprocess.run Add default versions of NIXOS_CONFIGURATION and HOME_MANAGER_CONFIGURATION to compare to env vars, assume configuration is a flake if different and append "--flake" argument to process commands |
||
---|---|---|
src/nix_background_upgrade | ||
tests | ||
.dir-locals.el | ||
.gitignore | ||
.pre-commit-config.yaml | ||
default.nix | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
poetry.lock | ||
pyproject.toml | ||
README.md | ||
shell.nix |
Nix Background Upgrade
Upgrade NixOS system (and/or home-manager) in the background, with notification support.
Early stages of development, subject to change and likely not working at the current stage.
Install
Clone the repository and install with pip (or preferred Python packaging system):
git clone https://git.xenia.me.uk/pixelifytica/nix-background-upgrade.git
python3 -m pip install ./nix-background-upgrade
For development
Project uses Poetry to manage dependencies.
Install Poetry (see
documentation for more
details), for example using pipx
:
pipx install poetry
Then install project using poetry
:
poetry install
Python code is formatted using black and isort.
pre-commit
pre-commit is used to ensure formatting of new/changed files. Install pre-commit hooks with:
pre-commit install --install-hooks
Nix Flake
Project provides a Nix flake.nix
and shell.nix
to get up and
running quickly.
Run nix develop
(Flake) or nix-shell
(non-Flake) to enter
development shell containing project dependencies.