Jörg Thalheim
91cd091669
zpool: fix default value for cache
...
we want an empty list instead of null
2024-10-01 08:55:41 +02:00
Michael Hoang
b709e1cc33
interactive-vm: override forceImportRoot
...
Some users will have `boot.zfs.forceImportRoot = false;` in their
configurations which conflicts with `boot.zfs.forceImportAll = true;`,
so we set it to `true` to match.
2024-09-28 13:50:34 +00:00
Jörg Thalheim
67dc29be30
Merge pull request #716 from beviu/fmt-check
...
Add --check option to formatter in flake
2024-09-26 15:59:51 +02:00
Felix Uhl
72c867c439
Run nix fmt
2024-09-26 15:36:54 +02:00
beviu
4c4c869c2d
flake: add --check option to formatter
...
Add an option to check the formatting without modifying files.
This will be can be used in CI checks.
2024-09-26 12:52:03 +02:00
Felix Uhl
1879e48907
Merge pull request #801 from danjujan/master
...
make-disk-image: use memSize as default build-memory in diskoImagesScript
2024-09-26 12:50:29 +02:00
danjujan
18c5410fdf
make-disk-image: use memSize as default build-memory in diskoImagesScript
2024-09-26 12:28:15 +02:00
Jörg Thalheim
c1c472f4cd
Merge pull request #797 from r-vdp/always-add-dm-snapshot
...
Always add dm-snapshot when LVM is used
2024-09-25 09:39:37 +02:00
r-vdp
1f8e67e945
Always add dm-snapshot when LVM is used
...
The lvm_type is only set on RAID and thinly provisioned LVM volumes, but
regular LVM volumes without a type can also have snapshots.
2024-09-25 09:30:14 +02:00
Jörg Thalheim
6d42596a35
lvm: add missing dm-snapshot
...
Usually this is added by nixos-generate-config.
However now that we run nixos-generate-config before disko or we even
run nixos-facter, we likely not see the LVM block devices anymore.
2024-09-24 16:53:30 +00:00
Felix Uhl
c61e50b63a
Merge pull request #795 from Jayman2000/binlore-for-disko-commands
2024-09-24 07:45:17 +02:00
Jason Yundt and Jörg Thalheim
6d2914c62c
Add binlore for disko and disko-install
...
Consider this flake:
{
description = "Helper for reproducing a disko-related problem";
inputs = {
disko.url = "github:nix-community/disko/b1d6bed240abef5f5373e88fc7909f493013e557";
nixpkgs.follows = "disko/nixpkgs";
};
outputs =
{
self,
disko,
nixpkgs,
}:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages."${system}";
in
{
packages."${system}".default =
pkgs.resholve.writeScript "disko-install-binlore-test"
{
inputs = [ disko.packages."${system}".default ];
interpreter = "${pkgs.lib.getExe pkgs.bash}";
}
''
disko --help
disko-install --help
'';
};
}
That flake will fail to build because resholve thinks that disko and
disko-install might be able to execute their arguments. This commit
fixes that problem.
Co-authored-by: Jörg Thalheim <joerg@thalheim.io >
2024-09-23 17:32:32 -04:00
zerox
b1d6bed240
interactive-vm: use host pkgs in the launcher script.
2024-09-23 13:23:58 +00:00
Jörg Thalheim
430ba34990
Merge pull request #793 from nix-community/joerg-ci
...
add workaround for failing zpool import test
2024-09-23 15:13:27 +02:00
Jörg Thalheim
e72de0702d
add workaround for failing zpool import test
2024-09-23 15:07:20 +02:00
lassulus
49b22d486c
delete old logo
2024-09-23 12:21:55 +02:00
Jörg Thalheim
51994df8ba
imageBuilder: add defaultText
...
otherwise documentation depends on the hostname to be set
2024-09-20 14:23:16 +00:00
Jörg Thalheim
0fe779905f
Merge pull request #785 from nix-community/smaller-fixes
...
Fix shellcheck for mounoptions with commas + escape filesystem args
2024-09-20 15:23:44 +02:00
Jörg Thalheim
9adb48e682
add workaround for flakey zfs tests
2024-09-20 15:16:46 +02:00
Jörg Thalheim
93c1dde419
tests/f2fs: add compression
...
This is a regression test for shellcheck, where we had to disable SC2054
2024-09-20 15:02:37 +02:00
Jörg Thalheim
da8bfaf1d5
shellcheck: also disable SC2054
2024-09-20 14:55:36 +02:00
Jörg Thalheim
bc7fd7238a
filesystem: escape shell args
2024-09-20 14:47:45 +02:00
Jörg Thalheim
624fd86460
Merge pull request #783 from nix-community/joerg-ci
...
update project logo
v1.8.0
2024-09-19 21:58:46 +02:00
Jörg Thalheim
3646c27805
update project logo
...
fixes https://github.com/nix-community/disko/issues/781
2024-09-19 21:57:32 +02:00
Jörg Thalheim
a31fe5ef16
Merge pull request #776 from Enzime/populate
...
module: always populate system.build attributes
2024-09-19 09:20:53 +02:00
Michael Hoang
c5853dcb32
module: throw if no disks are defined
2024-09-19 07:41:06 +07:00
Michael Hoang
706a1722f6
module: always populate system.build attributes
2024-09-19 06:53:45 +07:00
Michael Hoang
d32d1504c7
zpool: support updating zfsprops on root dataset
2024-09-17 16:35:12 +00:00
Michael Hoang
a9eeea3379
zfs_fs: support updating mountpoint properly
...
Use `zfs set -u` to update the `mountpoint` flag without mounting or
unmounting the filesystem. This flag was added in OpenZFS 2.2.0, which
was released October 2023.
The previous logic would not update `mountpoint` if `config.options` was
empty or only contained `mountpoint`.
2024-09-17 16:35:12 +00:00
Michael Hoang
88b015b9eb
make-disk-image: fix spelling for --help
2024-09-17 14:02:43 +00:00
Michael Hoang
d52ca37645
docs: rename vdb -> main
2024-09-17 14:02:43 +00:00
Jörg Thalheim
22ee467a54
Merge pull request #775 from nix-community/dependabot/github_actions/cachix/install-nix-action-V28
...
build(deps): bump cachix/install-nix-action from V27 to 28
2024-09-17 00:07:47 +02:00
dependabot[bot]
521fc3d5ad
build(deps): bump cachix/install-nix-action from V27 to 28
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from V27 to 28. This release includes the previously tagged commit.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/V27...V28 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-09-16 19:55:33 +00:00
lassulus
51e3a7e512
Merge pull request #771 from Enzime/refactor/make-disk-image
...
make-disk-image: convert into NixOS module
2024-09-15 11:41:32 +01:00
Jörg Thalheim
3632080c41
Merge pull request #764 from nix-community/dependabot/github_actions/DeterminateSystems/update-flake-lock-24
...
build(deps): bump DeterminateSystems/update-flake-lock from 23 to 24
2024-09-14 16:59:29 +02: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
Jörg Thalheim
4ef99d8ec4
Merge pull request #768 from nix-community/mergify/Mic92/config-update
...
ci(Mergify): configuration update
2024-09-13 11:17:20 +02:00
Jörg Thalheim
0f0b7f409d
ci(Mergify): configuration update
...
Signed-off-by: Jörg Thalheim <null>
2024-09-13 11:17:11 +02:00
Michael Hoang
59fb64b36b
make-disk-image: automatically add ZFS to kernel
...
Fixes #461
2024-09-12 15:06:25 +00:00
lassulus
495c2d7673
Merge pull request #766 from Enzime/disko-vm
...
Add `virtualisation.vmVariantWithDisko` option
2024-09-12 08:57:52 +01:00
dependabot[bot]
1eb54f6efc
build(deps): bump DeterminateSystems/update-flake-lock from 23 to 24
...
Bumps [DeterminateSystems/update-flake-lock](https://github.com/determinatesystems/update-flake-lock ) from 23 to 24.
- [Release notes](https://github.com/determinatesystems/update-flake-lock/releases )
- [Commits](https://github.com/determinatesystems/update-flake-lock/compare/v23...v24 )
---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-09-09 19:24:19 +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
lassulus
e55f9a8678
Merge pull request #757 from nix-community/disk-deactiviate
...
disk-deactivate: only run zfs command if they are present
v1.7.0
2024-09-03 17:37:14 +02: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
736c8150b9
disk-deactivate: also clear zpool labels
...
this helps to avoid ghost pools.
2024-09-03 17:10:47 +02:00
Jörg Thalheim
c789d113c6
disk-deactivate: only run zfs command if they are present
2024-09-03 17:10:47 +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