Commit graph

1172 commits

Author SHA1 Message Date
lassulus
d4a2a6f8bb disko-install: add --disko-system-config parameter 2025-01-18 00:54:28 +01:00
Jörg Thalheim
bf0abfde48
Merge pull request #941 from LogicalOverflow/master
fix eval of `zfs_volume`'s `_unmount` if `content` is `null`
2025-01-16 15:34:23 +01:00
Leonie Marcy Vack
c53bfaa13a zfs_volume: fix eval of _unmount if content is null 2025-01-16 14:46:04 +01:00
Leonie Marcy Vack
1ae7c794d9 zfs_volume: add zfs_volume without content to zfs example 2025-01-16 14:45:30 +01:00
lassulus
f720e64ec3
Merge pull request #938 from bittner/patch-1
Fix minor typo
2025-01-12 20:50:25 +01:00
Peter Bittner
f275b06323
Fix minor typo 2025-01-12 20:29:17 +01:00
Jörg Thalheim
33827d2bd1
Merge pull request #923 from whs-dot-hk/fix-typo
Fix typo
2025-01-11 11:38:24 +01:00
Jörg Thalheim
79a12e659b disko: fix postVM beeing empty 2025-01-11 09:56:21 +00:00
whs
ade21e2c96 Fix typo 2025-01-11 09:56:21 +00:00
lassulus
cb6297aceb
Merge pull request #936 from saviosg/savio-disko
make-disk-image: fix function precedence breaks customQemu
2025-01-11 10:55:30 +01:00
Sávio
fe89f379e7 make-disk-image: fix function precedence breaks customQemu 2025-01-10 20:23:13 -03:00
Jörg Thalheim
b1a94497b1
Merge pull request #935 from nix-community/install-grub-devs
install-cli: use disks from diskMappings arg for grub devices
2025-01-10 17:32:08 +01:00
lassulus
b64dddf61b install-cli: use disks from diskMappings arg for grub devices 2025-01-10 17:17:54 +01:00
Paul Haerle
4d5d07d37f
Merge pull request #933 from nix-community/update_flake_lock_action
flake.lock: Update
2025-01-09 16:48:00 +01:00
Paul Haerle
11e3073dff
Merge pull request #934 from nix-community/file-module
export nixosModule as file
2025-01-09 16:46:53 +01:00
lassulus
b9ca21dc6c export nixosModule as file 2025-01-09 14:17:26 +01:00
github-actions[bot]
b8aecf159f flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/a27871180d30ebee8aa6b11bf7fef8a52f024733?narHash=sha256-Q4HuFAvoKAIiTRZTUxJ0ZXeTC7lLfC9/dggGHNXNlCw%3D' (2025-01-03)
  → 'github:NixOS/nixpkgs/8c9fd3e564728e90829ee7dbac6edc972971cd0f?narHash=sha256-CHd7yhaDigUuJyDeX0SADbTM9FXfiWaeNyY34FL1wQU%3D' (2025-01-07)
2025-01-09 02:08:55 +00:00
Paul Haerle
49f8aa791f
Merge pull request #930 from provokateurin/fix/examples-boot-partition-umask
fix: Apply umask=0077 to /boot partition in all examples
2025-01-06 22:37:17 +01:00
provokateurin
5be012e917
fix: Apply umask=0077 to /boot partition in all examples 2025-01-06 20:23:33 +01:00
lassulus
76816af65d
Merge pull request #926 from nix-community/update_flake_lock_action
flake.lock: Update
2025-01-06 13:08:17 +01:00
github-actions[bot]
c315045f42 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/4989a246d7a390a859852baddb1013f825435cee?narHash=sha256-kMBQ5PRiFLagltK0sH%2B08aiNt3zGERC2297iB6vrvlU%3D' (2024-12-17)
  → 'github:NixOS/nixpkgs/a27871180d30ebee8aa6b11bf7fef8a52f024733?narHash=sha256-Q4HuFAvoKAIiTRZTUxJ0ZXeTC7lLfC9/dggGHNXNlCw%3D' (2025-01-03)
2025-01-06 01:45:48 +00:00
Jörg Thalheim
84a5b93637
Merge pull request #928 from aos/aos/xfs-options
doc: simple xfs with options
2024-12-29 11:39:13 +01:00
Aos Dabbagh
7d9940a4df doc: simple xfs with options
This PR documents an XFS example that uses the `xfs_quota` feature.
2024-12-28 16:43:16 -05:00
Jörg Thalheim
3a4de9fa3a
Merge pull request #924 from nix-community/vdev
zfs-with-vdevs: add an example for using absolute device paths
2024-12-24 14:54:06 +01:00
Jörg Thalheim
7ea6edd857 zfs-with-vdevs: add an example for using absolute device paths
This is the only way to assign devices rather than fixed gpt partitions.
Without reading the code it's not very obvious how disko actually
assigns devices to zpools.
2024-12-24 14:45:56 +01:00
Jörg Thalheim
2ee76c861a
Merge pull request #921 from nix-community/zfs-fix
zfs: run load-key on mount/unmount
2024-12-20 14:26:41 +01:00
Jörg Thalheim
d8f3cfc582 zfs: run load-key on mount 2024-12-20 14:24:53 +01:00
Jörg Thalheim
60375cf096 cli: remove traceValSeq that shouldn't be there 2024-12-20 14:24:53 +01:00
Jörg Thalheim
600d2e1d2f
Merge pull request #922 from nix-community/update_flake_lock_action
flake.lock: Update
2024-12-20 14:22:38 +01:00
github-actions[bot]
194a9965d1 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/71a6392e367b08525ee710a93af2e80083b5b3e2?narHash=sha256-0XovF7BYP50rTD2v4r55tR5MuBLet7q4xIz6Rgh3BBU%3D' (2024-12-13)
  → 'github:NixOS/nixpkgs/4989a246d7a390a859852baddb1013f825435cee?narHash=sha256-kMBQ5PRiFLagltK0sH%2B08aiNt3zGERC2297iB6vrvlU%3D' (2024-12-17)
2024-12-19 01:47:15 +00:00
Jörg Thalheim
a08bfe06b3
Merge pull request #920 from nix-community/update_flake_lock_action
flake.lock: Update
2024-12-16 11:03:32 +01:00
Jörg Thalheim
dcd15a37f7 make-disk-image fix virtiofs support 2024-12-16 09:27:07 +01:00
github-actions[bot]
d3e3aa7a14 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/bc27f0fde01ce4e1bfec1ab122d72b7380278e68?narHash=sha256-%2B5qdtgXceqhK5ZR1YbP1fAUsweBIrhL38726oIEAtDs%3D' (2024-12-09)
  → 'github:NixOS/nixpkgs/71a6392e367b08525ee710a93af2e80083b5b3e2?narHash=sha256-0XovF7BYP50rTD2v4r55tR5MuBLet7q4xIz6Rgh3BBU%3D' (2024-12-13)
2024-12-16 01:54:04 +00:00
Jörg Thalheim
d32f2d1750 release: reset released flag 2024-12-13 12:09:27 +01:00
Jörg Thalheim
65a441502c release: v1.10.0 2024-12-13 12:09:27 +01:00
Jörg Thalheim
2097ca7a9e
Merge pull request #916 from 0x450x6c/zvol_extra_args
Add extraArgs to zfs_volume.
2024-12-13 12:07:58 +01:00
neox
a0c967fef4 Add extraArgs to zfs_volume.
Update lib/types/zfs_volume.nix
2024-12-13 11:16:40 +01:00
Jörg Thalheim
825605c2c7
Merge pull request #911 from nix-community/avoid-mv
make-disk-image: create directories images in out path
2024-12-13 11:16:20 +01:00
Jörg Thalheim
0f31ad735e
Merge pull request #903 from nix-community/update_flake_lock_action
flake.lock: Update
2024-12-12 14:46:32 +01:00
github-actions[bot]
9c74188ec6 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/8edf06bea5bcbee082df1b7369ff973b91618b8d?narHash=sha256-sQxuJm8rHY20xq6Ah%2BGwIUkF95tWjGRd1X8xF%2BPkk38%3D' (2024-11-22)
  → 'github:NixOS/nixpkgs/bc27f0fde01ce4e1bfec1ab122d72b7380278e68?narHash=sha256-%2B5qdtgXceqhK5ZR1YbP1fAUsweBIrhL38726oIEAtDs%3D' (2024-12-09)
2024-12-12 01:50:06 +00:00
Jörg Thalheim
22cd4b7e49 check for db.sqlite rather than /nix/store
since we initialize the database last, it's safe to use the database as
a sentinel path
2024-12-05 13:05:22 +01:00
Jörg Thalheim
98894c8598 make-disk-image: create directories images in out path
In case we are crossing some filesystem boundary (i.e. /tmp -> /nix/store),
this is faster. Also tmpfs might be probelemantic regarding memory usage.
2024-12-05 13:05:22 +01:00
Paul Haerle
785c1e02c7
Merge pull request #909 from nix-community/remove-lib-mdDoc
tree-wide: Remove all uses of lib.mdDoc
2024-12-02 20:48:22 +01:00
Felix Uhl
67a130b984 tree-wide: Remove all uses of lib.mdDoc
This was deprecated in 24.05 already, and removed in 24.11.
2024-12-02 20:28:17 +01:00
Paul Haerle
2814a5224a
Merge pull request #907 from nix-community/stop-overwriting-saved-env
disk-image: Fix compatibility with nixpkgs unstable
2024-11-30 18:34:36 +01:00
Felix Uhl
3faa300212 disk-image: Fix compatibility with nixpkgs unstable
Fixes #900

This was caused by https://github.com/NixOS/nixpkgs/pull/354535
originally. The breaking changes introduced there have been resolved by
https://github.com/NixOS/nixpkgs/pull/360413, but one addition survived,
which was the line `source $stdenv/setup`.

Because we used `>` instead of `>>`, `saved-env` was overwritten, so
even with the second PR, the script failed with the following error:

    /nix/store/pw...ykc-vm-run-stage2: line 16: stdenv: unbound variable

Once this and the second PR mentioned above are merged, #903 will be
unblocked.
2024-11-30 17:36:29 +01:00
Jörg Thalheim
b71e3faca9
Merge pull request #906 from nix-community/fix-904
make-disk-image: Compare against correct nixpkgs version
2024-11-29 23:29:22 +01:00
Felix Uhl
5655a13ac9 make-disk-image: Compare against correct nixpkgs version
It seems that there is a difference between how `pkgs` and `lib` get
passed to NixOS modules: `pkgs` is the unmodified original, `lib` is the
final version after overrides etc.

This causes `pkgs.lib.version` to be `24.11git` in some cases, while
`lib.version` is `24.11.20241123.0c58267`.
Maybe this can be fixed in nixpkgs? Either way, this change fixes that
issue.

Fixes #904
2024-11-29 19:38:31 +01:00
Jörg Thalheim
a75ba3b87b
Merge pull request #891 from nix-community/verity
Add declarative unmount
2024-11-29 16:39:43 +01:00
Jörg Thalheim
aa006252c8 add unmount feature 2024-11-29 14:44:15 +01:00