Jörg Thalheim
0e507d73bf
disko: allow importing disko twice
...
nixos deduplicate imports according to files.
By importing a file instead of an anonymous function,
we can import the same file multiple times without creating conflicts.
2024-05-11 16:29:00 +00:00
Jörg Thalheim
718565dfbb
drop dependency on xcp
...
It's actually not faster in combination with xargs...
2024-05-07 08:53:10 +02:00
Jörg Thalheim
babc1554e8
drop duplicated disko-install definition
2024-05-07 08:53:10 +02:00
Jörg Thalheim
cdefe26742
load database with checksum again but do the same in disko-install
2024-05-07 08:53:10 +02:00
Jörg Thalheim
8a4585a200
disko-images: replace nix-copy with cp
...
This hopefully fixes the large memory consumption we have seen in the
past. Also presumably coreutils cp is more tuned for performance than
whatever nix does.
2024-05-06 20:51:39 +02:00
Jörg Thalheim
4f8c8580b4
fix building images when non-binary reproducible builds are present
...
closure-info has one flaw, it's possible that this file contains stale
information when build are not reproducible and the local checksum
doesn't match what the remote build created.
The work-around here is that we disregard the hashes and re-compute with
what nar's we actually have locally instead.
2024-05-06 19:29:20 +02:00
Jörg Thalheim
5eaf747af3
README: link to disko-install and disko-images
2024-04-29 17:43:27 +02:00
Jörg Thalheim
e5b3299a14
README: link to disko-install and disko-images
2024-04-29 17:41:29 +02:00
Jörg Thalheim
39de9e8cca
move disko-images to its own chapter
2024-04-29 17:05:43 +02:00
Jörg Thalheim
6fad976102
fix mergify configuration
2024-04-23 11:19:26 +02:00
Jörg Thalheim
d51114dc1b
document offline installation
2024-04-15 18:09:54 +00:00
Jörg Thalheim
93bf2c3d26
disko-install: simplify let statements
2024-04-15 18:03:33 +00:00
Jörg Thalheim
fbbac1aee6
disko-install: document --mode flag more
2024-04-05 13:54:19 +00:00
Jörg Thalheim
a6717b1afe
disko-install: check if it runs as root
2024-03-26 14:19:03 +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
Jörg Thalheim
5866ae41f7
disko-install: fix case where lib in NixOS is not defined
...
This seems like a recent addition that we don't have on all NixOS machines.
2024-03-11 16:10:06 +01:00
Jörg Thalheim
7d25dc74c5
docs: clarify generated image names
2024-03-11 11:27:55 +01:00
Jörg Thalheim
714768a174
docs: expand diskoImagesScript example
2024-03-11 09:40:38 +01:00
Jörg Thalheim
72818e54ec
move disko-install into disko package
2024-03-09 07:05:35 +00:00
Jörg Thalheim
cf185d687f
disko-install: improve error message if disk is not passed
2024-03-05 14:03:10 +00:00
Jörg Thalheim
0d11aa8d64
disko-install: add extra-files option
2024-03-05 09:52:34 +00:00
Jörg Thalheim
337abec03f
make disko-install captialize
2024-03-05 09:45:10 +00:00
Jörg Thalheim
3704ee3926
add efi var install option
2024-03-05 09:45:10 +00:00
Jörg Thalheim
f61c7d28d5
add documentation for disko-install
2024-03-05 09:45:10 +00:00
Jörg Thalheim
0c9b003a48
bcachefs: drop zfs hack
2024-03-05 08:56:58 +01:00
Jörg Thalheim
bde7dd352c
add disko-install command
...
disko-install combines disko and nixos-install into a single command.
Example usage:
sudo ./disko-install --flake /someflake#eva --disk sda /dev/zvol/zroot/test
2024-03-01 09:48:08 +00:00
Jörg Thalheim
590245271a
add assertion if mirroredBoots is used in vm test
2024-02-22 00:01:18 +00:00
Jörg Thalheim
c12719812d
bcachefs: stick to nixos's default bcachefs kernel
2024-01-26 09:38:59 +00:00
Jörg Thalheim
38af7137e0
tests/bcachefs: switch to linux_latest
2024-01-15 14:29:04 +00:00
Jörg Thalheim
98ab911097
bcachefs: set testing kernel for bcachefs
...
still waiting for the slow upstream review...
2023-12-14 16:02:39 +00:00
Jörg Thalheim
1144887c6f
lvm: update kernel modules when creating raid
2023-12-06 23:28:45 +00:00
Jörg Thalheim
c7f594c2ab
doc: add experimental flags to examples
...
fixes https://github.com/nix-community/disko/issues/459
2023-12-06 22:51:30 +00:00
Jörg Thalheim
3cb78c93e6
swap: don't activate random encrypted swap files
...
This requires more code and is not implemented just now.
2023-11-25 15:47:29 +00:00
Jörg Thalheim
89fd5b51f0
docs/reference: fixup headings
2023-11-11 20:23:15 +00:00
Jörg Thalheim and Janik
39f8a6adc4
docs: improve make-disk-image docs using my text calculator
...
Co-authored-by: Janik <80165193+Janik-Haag@users.noreply.github.com >
2023-11-11 20:23:15 +00:00
Jörg Thalheim
8c5d52db56
publish to flakestry
2023-10-24 15:55:28 +02:00
Jörg Thalheim
78fba3983d
make boot large enough in tests
...
100M is not enough and I see people just copying examples without putting in any extra thoughts
https://github.com/TUM-DSE/doctor-cluster-config/pull/368
2023-09-27 06:19:07 +00:00
Jörg Thalheim
2b523b58e6
use M instead MiB suffix everywhere
...
This seems to do better alignment
2023-09-27 06:02:50 +00:00
Jörg Thalheim
b18f43a9c2
luks: don't leak secret in debug logs
2023-09-27 05:52:36 +00:00
Jörg Thalheim
f43f106e91
disko: also support -h
2023-09-20 10:13:12 +00:00
Jörg Thalheim
9ab96378f8
reformat tree
2023-09-17 04:43:25 +00:00
Jörg Thalheim
1be23d771f
replace statix with deadnix
...
statix does sometimes weird stuff while deadnix is even better at finding deadcode
2023-09-17 04:43:25 +00:00
Jörg Thalheim
4ec801c317
add deno to formatters
2023-09-17 04:43:25 +00:00
Jörg Thalheim
ea3e29fe7d
update command line reference
2023-09-17 04:43:25 +00:00
Jörg Thalheim
ecfb74e5cf
remove another instance of hostId
2023-09-02 17:55:49 +00:00
Jörg Thalheim
3133097918
grub: drop version 2 from docs
2023-09-02 18:45:50 +02:00
Jörg Thalheim
76d301bc94
tests/complex: also mark zfs_fs dataset as non-fail
...
Reason is probably same as zfs_legacy_fs
2023-09-02 18:37:01 +02:00
Jörg Thalheim
c4f2de908d
fix evaluation of checks on non-x86_64-linux
...
run nix fmt
2023-09-02 18:37:01 +02:00
Jörg Thalheim
9de99e174c
run nix-fmt
2023-09-02 18:08:41 +02:00
Jörg Thalheim
78856a26b6
mergify: switch to buildbot
2023-09-02 14:18:17 +02:00
Jörg Thalheim
de50df482e
do not set networking.hostId in vm tests by default
...
This will conflict with the user defaults otherwise
2023-09-02 14:16:18 +02:00
Jörg Thalheim
6388d2859c
find more broken riscv64 tests
2023-08-14 07:59:55 +00:00
Jörg Thalheim
358b87fd44
make tests risv64 compatible
2023-08-13 18:30:15 +00:00
Jörg Thalheim
3ba5bb2de6
disable haskell-based builds on riscv64
...
fixes https://github.com/nix-community/disko/issues/321
2023-08-13 17:41:12 +00:00
Jörg Thalheim
241c878d4b
drop deprecated boot.initrd.services.swraid.enable option
2023-08-11 08:45:46 +00:00
Jörg Thalheim
b32f0e2876
apply treefmt
2023-08-11 08:45:46 +00:00
Jörg Thalheim
049d1bd952
silence eval warnings in make-disk-image tests
2023-08-11 08:45:46 +00:00
Jörg Thalheim
a1d04e00bd
add missing tests
2023-08-10 14:46:44 +02:00
Jörg Thalheim
493b347d8f
disko: drop binPrefix when building destroyScript
...
This seems to cause eval errors and I also don't know where this is supposed to come from
2023-08-06 16:28:59 +00:00
Jörg Thalheim
4b30f029d2
flake.lock: Update
...
Flake lock file updates:
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/cd99c2b3c9f160cd004318e0697f90bbd5960825' (2023-07-01)
→ 'github:NixOS/nixpkgs/0d5682acc109add20f70440269587a1b169cc2fe' (2023-07-04)
2023-07-05 09:48:02 +02:00
Jörg Thalheim
1cd619f26f
stop vendoring bcachefs
...
the bcachefs linux fork in nixpkgs is in better shape these days
2023-07-05 09:48:02 +02:00
Jörg Thalheim
4823509bb3
boot-raid1: switch to new gpt type
2023-06-19 00:33:16 +00:00
Jörg Thalheim
95c10a6c7f
bcachefs: migrate to new part type
2023-06-16 20:01:12 +00:00
Jörg Thalheim
0a3d694a39
mergify: switch to rebase
2023-06-16 13:40:42 +02:00
Jörg Thalheim
55eea2030a
update-flake-lock: add permission to create pr
2023-06-12 06:49:44 +02:00
Jörg Thalheim
fc63247f9e
drop disko bot
2023-06-12 06:48:24 +02:00
Jörg Thalheim
160bd22789
replace bors with mergify
2023-06-12 06:46:43 +02:00
Jörg Thalheim
1af22d6dde
linux-testing-bcachefs: 6.3.0-2023-05-02 -> 6.3.0-2023-05-21
2023-06-08 11:19:38 +02:00
Jörg Thalheim
a8d85d9f89
apply deadnix
2023-06-06 13:32:47 +02:00
Jörg Thalheim
97d546372c
linux-testing-bcachefs: 6.2.0-2023-04-15 -> 6.3.0-2023-05-02
2023-05-04 10:26:02 +02:00
Jörg Thalheim
e97617e260
quickstart: fix grammar
2023-04-16 21:50:35 +02:00
Jörg Thalheim
c7d5aef3f0
README: add project logo
2023-04-16 17:16:17 +02:00
Jörg Thalheim
0a9e04a9da
linux-bcachefs-testing: 6.2.0-2023-03-22 -> 6.2.0-2023-04-15
2023-04-15 23:16:44 +02:00
Jörg Thalheim
8cb5b9656a
upgrade-guide: fix markdown syntax
2023-04-15 17:18:50 +02:00
Jörg Thalheim
859e7c5be2
update bors.toml
2023-04-15 16:12:56 +02:00
Jörg Thalheim
8ac50aa153
improve changelog
2023-04-15 16:08:27 +02:00
Jörg Thalheim
d348d0ad19
linux-bcachefs: 6.1.0-2023-02-01 -> 6.2.0-2023-03-13
2023-03-27 13:34:46 +02:00
Jörg Thalheim
edcc636fd0
linux-bcachefs: 6.1.0-2023-02-01 -> 6.2.0-2023-03-13
2023-03-14 09:16:21 +01:00
Jörg Thalheim
7e135d744d
quickstart: fix example
2023-02-26 16:00:27 +01:00
Jörg Thalheim
a511f59961
jq: filter null values from mountpoints from lsblk output
2023-02-03 14:57:55 +01:00
Jörg Thalheim
753b5543a0
better structure
2023-02-03 13:27:21 +01:00
Jörg Thalheim
66b265be44
add quickstart guide
2023-02-03 13:22:44 +01:00
Jörg Thalheim
db2be366c4
quickstart guide
2023-02-03 13:22:42 +01:00
Jörg Thalheim
d23fcb611e
add test for hybrid configuration
2023-02-02 14:49:20 +01:00
Jörg Thalheim
daaba55a28
delete obsolete types.nix
2023-02-02 14:42:09 +01:00
Jörg Thalheim
78ea07107a
support zvol with disko
...
this is useful for quick testing.
2023-02-02 14:42:09 +01:00
Jörg Thalheim
9f58230409
also inherit lib for disko scripts
2023-02-02 14:42:09 +01:00
Jörg Thalheim
0fadf13755
hardcode nixpkgs in NIX_PATH of disko cli
2023-02-02 14:42:09 +01:00
Jörg Thalheim
50adcfe303
disko: fix packaging missing nix files
2023-02-02 14:42:09 +01:00
Jörg Thalheim
5f4651aa0b
bcachefs: 2022-12-29 -> 2023-02-01
2023-02-01 22:56:32 +01:00
Jörg Thalheim
48e4c06004
split disko type into multiple files
2023-01-29 08:10:33 +01:00
Jörg Thalheim
e018cf8c59
update bors toml
2023-01-23 15:35:25 +01:00
Jörg Thalheim
65a8e3f9a0
move linuxPackages_bcachefs to legacyPackages
2023-01-23 15:34:35 +01:00
Jörg Thalheim
eca1957835
vendorize bcachefs kernel
2023-01-23 10:56:51 +01:00
Jörg Thalheim
5e1969f952
Revert "don't use bot token for flake updates"
...
This reverts commit c681875a0c .
That did not quite work, but now we have our own bot for disko.
2023-01-23 09:29:14 +01:00
Jörg Thalheim
c681875a0c
don't use bot token for flake updates
2023-01-23 09:15:25 +01:00
Jörg Thalheim
3da5595a9c
drop mergify
2023-01-23 09:08:59 +01:00
Jörg Thalheim
f0fff7ab32
ci: automerge flake updates
2023-01-23 09:06:47 +01:00
Jörg Thalheim
36ef99fca6
add disko-doc
2023-01-15 21:34:52 +01:00