Commit graph

8 commits

Author SHA1 Message Date
Felix Uhl
cfcc518b70 disko2: Add rudimentary plan generation 2024-11-27 23:18:54 +01:00
Felix Uhl
6651792c28 disko2: Validate config for type-safety in python 2024-11-17 21:37:39 +01:00
Felix Uhl
ae7891e21f disko2: Fix all mypy type checking errors
Belongs to d382a3cccf, but I authored that
on another machine.

Making sure vscode uses mypy from the environment is very important now,
because some of these errors get triggered in different ways depending
on the version.
2024-11-17 19:39:07 +01:00
Felix Uhl
a0e8f7f587 disko2: Add code generator for disko config type
There are still two issues: The type of "topology" in zpool is not
created, and gpt_partitions_options_hybrid_options for some reason
contains a `_create: "_create"` entry. This is an issue with the nix
evaluation, though, not with the code generator.

I'm fixing these issues manually to have some state I can start working
from.
2024-11-17 15:08:26 +01:00
Felix Uhl
8c1668edec release: fix wrong push command 2024-10-12 00:49:30 +02:00
Felix Uhl
9788e5d458 release: Fix release script 2024-10-11 20:56:18 +02:00
Felix Uhl
c7ef3964b6 docs: add "latest" tag to flake references
This ensures that people will always use the latest release, not just
whatever the current master is.
2024-10-11 15:14:56 +00:00
Felix Uhl
aee84b5fb3 disko cli: add --version command
Fixes #745

This adds a script to create a release. Running it will create two
commits that would appear like this in `git log --oneline`:

    67b5fff (master) release: reset released flag
    0b808f3 (tag: v1.8.1) release: v1.8.1
    100d2f3 docs: last change before release

It also re-creates the `version.nix` file, which is used by the flake
to determine the final version the disko CLI will print.

If `disko --version` is run from exactly the commit tagged `v1.8.1`, it
will print `1.8.1`. If it is run from any commit past that (like
master), it will print `1.8.1-67b5fff`, and if it is run from a local
folder with uncommitted changes, it will print `1.8.1-67b5fff-dirty`.
2024-10-11 15:14:56 +00:00