Commit graph

35 commits

Author SHA1 Message Date
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
Felix Uhl
4c298a031a Fix issue when config path contains spaces 2024-10-11 08:37:28 +00:00
Felix Uhl
efe7528578 disko cli: remove requirement for leading ./
Fixes #536
2024-10-11 08:37:28 +00:00
Jörg Thalheim
fe064a6393 use nom-build if available
Nicer progress bars etc
2024-03-11 16:10:06 +01:00
Jörg Thalheim
a949edef70 accept relative paths for flakes in disko/disko-install
builtins.getFlake wants absolute paths
2024-03-11 16:10:06 +01:00
Gerg-L
dd142cd8a2 fix: unquoted flake ref 2023-09-22 09:24:51 +00:00
Jörg Thalheim
f43f106e91 disko: also support -h 2023-09-20 10:13:12 +00:00
David Arnold
e52fd722dd docs: actually no-deps has a broder use case
e.g. when disk is run as recommended via nix run from github
2023-09-14 21:19:11 +00:00
David Arnold
6674809437 docs: document no-deps and what it's good for 2023-09-14 21:19:11 +00:00
David Arnold
dc47122688 docs: clarify the default root mountpoint 2023-09-14 21:19:11 +00:00
David Arnold
fbb51cc6d3 docs: add nixos module discovery to the usage string 2023-09-14 21:19:11 +00:00
David Arnold
e7b26f6220 fix: usage string for flakes 2023-09-14 21:19:11 +00:00
David Arnold
3dbb24d731 fix: unbound variables are forbidden 2023-09-14 21:19:11 +00:00
a-kenji
4015740375 fix: typos 2023-07-30 17:43:54 +00:00
lassulus
f0aa14154e disko: document modes 2023-07-19 19:07:40 +00:00
lassulus
f6649d69d9 cli/default: refactor to use more code from lib 2023-07-19 19:07:40 +00:00
Soispha
90f24aef89
disko cli: fix error about impurity with nix
The script is generated by calling `nix-build` on the `cli.nix` file.
This fails on systems, which have the nix option pure_eval set, as nix
refuses to evaluate an untracked file. This would normally be impure,
but in this case the file is supplied in the same nix store path, i.e.
it's not referencing foreign files. Thus adding the `--impure` argument
should leave the nix call in fact still pure.
2023-06-28 17:35:27 +02:00
lassulus
ca51cc9be9 disko cli: allow mode to be disko 2023-06-04 13:09:11 +02:00
Maxime Brunet
1c9c199e49
fix(cli): pass --root-mountpoint value as string 2023-03-17 16:45:07 -07:00
lassulus
af2da574be add support for another mountpoint than /mnt 2023-01-28 18:08:31 +01:00
Victor Engmark
077ff277da refactor: Use command grouping rather than subshell
As recommended by ShellCheck.
2023-01-10 17:02:11 +13:00
Victor Engmark
148ac4c261 refactor: Use -n instead of ! -z
As recommended by ShellCheck.
2023-01-10 17:01:52 +13:00
Victor Engmark
388dfd8b5e fix: Remove unreferenced variable declaration 2023-01-10 17:01:28 +13:00
lassulus
25cc022282 disko cli: add --no-deps mode 2022-12-01 20:33:03 +01:00
lassulus
9cf4f170ae add zapCreateMount script for idempodents install from iso/kexec 2022-11-25 17:36:40 +01:00
a-kenji
581870a444 fix: typos 2022-11-21 12:00:45 +01:00
lassulus
d7e25ced8a disko: add --debug 2022-11-10 13:04:50 +01:00
lassulus
90178d4391 disko: enable flakes if flake was given 2022-11-10 12:34:45 +01:00
lassulus
c6152351f8 disko: add flake usage 2022-11-10 09:35:59 +01:00
lassulus
17d2392468 disko: don't create result links 2022-11-09 23:44:10 +01:00
lassulus
5fd29dfeb3 disko: support nixos-install style flake syntax 2022-11-09 23:36:46 +01:00
lassulus
7e52500078 disko: don't fail in flake mode 2022-11-09 16:43:46 +01:00
David Arnold
0af2a7c206 feat: allow to declare disko-config relative to flake 2022-11-09 12:30:06 +01:00
David Arnold
2a59af78a8 fix: add package build and fix disko 2022-11-09 12:21:24 +01:00
lassulus
f1531fb4f3 add disko cli 2022-11-01 20:05:10 +01:00