Upgrade NixOS system (and/or home-manager) in the background, with notification support
Find a file
Evie Litherland-Smith 2ff588b1e5 Add some structure files
Add initial files nixos.py and home-manager.py
2024-05-26 11:00:14 +01:00
src/nix_background_upgrade Add some structure files 2024-05-26 11:00:14 +01:00
tests Initial commit: Add project structure and boilerplate 2024-05-26 09:26:55 +01:00
.gitignore Initial commit: Add project structure and boilerplate 2024-05-26 09:26:55 +01:00
.pre-commit-config.yaml Rename main.py -> cli.py and add poetry pre-commit hooks 2024-05-26 10:52:54 +01:00
flake.lock Initial commit: Add project structure and boilerplate 2024-05-26 09:26:55 +01:00
flake.nix Rename main.py -> cli.py and add poetry pre-commit hooks 2024-05-26 10:52:54 +01:00
LICENSE Update poetry.lock, add LICENSE file 2024-05-26 09:48:31 +01:00
poetry.lock Add dev packages, pre-commit hooks 2024-05-26 10:06:30 +01:00
pyproject.toml Rename main.py -> cli.py and add poetry pre-commit hooks 2024-05-26 10:52:54 +01:00
README.md Add README content, add example/demo script 2024-05-26 10:35:21 +01:00

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 to get up and running quickly.