Michael Hoang
88b015b9eb
make-disk-image: fix spelling for --help
2024-09-17 14:02:43 +00:00
Michael Hoang
cc4d4a4b91
make-disk-image: convert into NixOS module
...
As `makeDiskImages` always requires a NixOS configuration, we can
simplify the code by convering it into a NixOS module. Then we can make
it responsible for populating `system.build.diskoImages` and
`system.build.diskoImagesScript`.
2024-09-14 19:35:44 +10:00
Michael Hoang
59fb64b36b
make-disk-image: automatically add ZFS to kernel
...
Fixes #461
2024-09-12 15:06:25 +00:00
Michael Hoang
0943a50ee7
interactive-vm: convert into NixOS module
2024-09-09 16:06:20 +10:00
Michael Hoang
ba66c22ec1
Add virtualisation.vmVariantWithDisko
option
2024-09-09 16:06:20 +10:00
Jörg Thalheim
8f0f75f1a8
zpool: better error message if zpool has no assigned devices
2024-09-03 17:11:42 +02:00
Jörg Thalheim
37c83c08d1
Merge pull request #723 from dmadisetti/dm/zfs-extra
...
zfs: add ZFS "topology" features like explicit vdevs, cache, and special
2024-09-03 17:07:39 +02:00
Sergey Kazenyuk
099b6cca33
btrfs: add swap priority, options
2024-09-03 14:06:14 +00:00
Sergey Kazenyuk
39b4091769
swap: add mountOptions
2024-09-03 14:06:14 +00:00
zerox
70a22d25a2
Switch to qcow2 in the interactive VM.
2024-08-31 09:57:41 +05:00
whs
517664d2fd
Fix writeDashBin
2024-08-27 21:03:36 +08:00
Dylan Madisetti
071306e76a
tidy: apply suggestions from code review
...
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2024-08-26 14:13:07 -04:00
dylan madisetti
c9d3bc3755
fix: properly apply oneOf
2024-08-26 14:00:44 -04:00
dylan madisetti
ea3ce722ea
zfs: fix test and add documentation
2024-08-26 13:03:25 -04:00
dylan madisetti
cc2e247193
zfs: make topology a mode type
2024-08-26 12:27:04 -04:00
zerox
540cd416f6
zfs: add ability to specify full path of to the disk.
2024-08-26 09:48:53 +05:00
Felix Uhl
435737144b
swap: don't create filesystem if randomEncryption is enabled
...
This is not an issue when initially creating the partition because
device mapper will just map on top of the filesystem, but it breaks
incremental updates because the check for `TYPE=` will fail, and the
subsequent attempt to run `mkswap` also fails:
mkswap: cannot open /dev/disk/by-partlabel/disk-nix-store-swap: Device or resource busy
Instead, just don't do anything, NixOS will take care of it.
2024-08-22 17:59:43 +00:00
Felix Uhl
f6b2e0052d
zfs_fs: Fix errors when not changing mountpoint
...
Running `zfs set mountpoint=/mnt/my-ds tank/my-ds`, ZFS may try to
unmount the dataset even if the mountpoint didn't change.
To avoid the confusing error message, this command is now only run when
the mountpoint actually changes.
2024-08-22 17:50:13 +00:00
lassulus
6433571556
Merge pull request #713 from nix-community/interactiveVM
...
add interactive VMs
2024-08-21 16:12:23 +02:00
matthewcroughan
cc86fe1a7c
f2fs: init
2024-08-20 10:26:29 +01:00
matthewcroughan
d8a1d5e1f0
make-disk-image: allow vmTools qemu usage to be overriden by disko configuration
...
This is needed to prevent two layers of emulation when offering a build for a host running binfmt such as an x86 host trying to compile for aarch64 via binfmt
2024-08-14 20:05:56 +01:00
matthewcroughan
de015d2a44
make-disk-image: allow pkgs to be overriden by disko configuration
...
This is needed when the nixosConfig you're building for modifies nixpkgs options that lead to evaluation failing unnecessarily
2024-08-14 20:05:56 +01:00
matthewcroughan
f5cc4b55e5
make-disk-image: allow kernel to be overriden by disko configuration
...
This is especially useful when trying to build images for embedded systems such as the pi, which have a vendor kernel that can't be booted as part of the disko image builder process
2024-08-14 20:05:56 +01:00
dylan madisetti
8d071db09b
test: fix and add stub test for zfs-with-vdevs
2024-08-05 12:11:35 -04:00
dylan madisetti
6bebcc728e
tidy: move relevant variables and format script block
2024-08-01 15:59:33 -04:00
dylan madisetti
b2a106f8ed
zfs: Add topology attribute to zpool
2024-08-01 15:41:09 -04:00
lassulus
a574d68d37
module: add vmWithDisko output to system
2024-08-01 13:00:08 +02:00
lassulus
5a9f2498fb
luks: add testmode password "disko"
2024-07-21 22:45:12 +02:00
lassulus
c5e5018a04
make-disk-image: add testMode, copyNixStore & extraConfig params
2024-07-21 22:40:29 +02:00
lassulus
6208b31a73
nix fmt
2024-07-21 16:44:30 +02:00
Jörg Thalheim
05f4e223b5
gpt: move boot partitions to the front of disko
...
Than we no longer need to do this in our examples.
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
2024-06-30 07:50:33 +00:00
Jörg Thalheim
115311bc39
zfs: try to import zpool in incremental mode
...
if the pool is not imported, zfs list will return a value. So to check
that the pool does not exist, we also import it.
fixes https://github.com/nix-community/disko/issues/690
2024-06-28 13:52:20 +00:00
Jörg Thalheim
96cab883db
zfs: when dataset already exist, only update dataset options
2024-06-28 13:53:07 +02:00
Matthew_Cash
b6a1262796
lvm_vg: add lvm thinpool/thinlv support
...
Co-authored-by: ajs124 <git@ajs124.de>
2024-06-26 11:36:52 +00:00
name_snrl
48580409a2
also add indentation to the hooks
2024-06-19 18:46:17 +00:00
name_snrl
248f65b9c4
fix option type in mkHook
2024-06-19 18:46:17 +00:00
Jörg Thalheim
804ab2de77
treewide: reformat with nix fmt
2024-06-09 06:40:59 +00:00
Jörg Thalheim
398acc470f
update to new nixos test api
2024-06-07 14:20:40 +00:00
Jörg Thalheim
6de2014749
make-disk-image: make efi variables writeable
2024-06-03 11:52:20 +00:00
pedohorse
c194451352
keep only origBuilder env from host
2024-06-03 11:35:13 +00:00
lassulus
a77fb7dde9
add table-to-gpt migration guide
2024-05-30 21:28:52 +02:00
matthewcroughan
6c37763eb8
make-disk-image: use OVMF efi always
2024-05-19 23:16:38 +01:00
matthewcroughan
4444751300
make-disk-image: make extraPostVM configurable from module.nix
2024-05-19 14:38:05 +01:00
Jared Baur
e9dd5abae3
Add coreutils to list of dependencies
...
This allows for the disko scripts to be ran in more foreign environments
where we can't assume the basic utilities coreutils provides are
available or aren't 1-for-1 compatible (e.g. busybox utilities).
2024-05-15 09:57:53 -07:00
Jared Baur
27c40e5381
Add missing gawk dependency
2024-05-15 09:57:25 -07:00
danjujan
d62af72c22
Fix xargs command not found in make-disk-image script
2024-05-14 21:38:05 +00:00
Giel van Schijndel
f236f6df36
swap: forward discardPolicy option to randomEncryption.allowDiscards
...
I.e. instead of effectively ignoring `discardPolicy` when combined with
`randomEncryption`, or adding a second option requiring the user to
repeat themselves (DRY violation), just enable both when requested via
`discardPolicy`.
Without this `discardPolicy` is a NOP when `randomEncryption` is
enabled.
2024-05-14 21:30:40 +00:00
lassulus
159d87ea5b
Merge pull request #623 from muggenhor/feat/swap-discard
...
swap: support swapDevices' discardPolicy and priority options
2024-05-11 18:33:55 +02:00
lassulus
4677f6c534
Merge pull request #625 from nix-community/image-fixes
...
Fix building images when non-binary reproducible builds are present
2024-05-07 10:26:51 +02:00
Sizhe Zhao
874c83c948
fix(lib): fix typo
2024-05-07 07:34:02 +00:00