Graham Christensen
bc49a0815a
utillinux: rename to util-linux
2020-11-24 12:42:06 -05:00
Sarah Brofeldt
e0d51db401
nixos: boot.zfsImportAll = false; by default
...
Also add 21.03 release note
2020-11-11 18:46:05 +01:00
Sarah Brofeldt
a4010e0580
nixos/zfs: Respect forceImportAll in import service
2020-11-11 18:45:14 +01:00
Henri Menke
fc4ea9ecba
ZFS: Request credentials only for selected pools
...
This change introduces more fine-grained requestEncryptionCredentials.
While previously when requestEncryptionCredentials = true, the
credentials for all imported pools and all datasets in these imported
pools were requested, it is now possible to select exactly the pools and
datasets for which credentials should be requested.
It is still possible to set requestEncryptionCredentials = true, which
continues to act as a wildcard for all pools and datasets, so the change
is backwards compatible.
2020-07-21 19:36:10 +12:00
Will Fancher
b5f7b79a2d
ZFS: Update description for requestEncryptionCredentials
2020-07-02 16:08:50 -04:00
Will Fancher
e2f1594695
ZFS: Set IFS=$'\t' for the read command in stage 2 load-key
...
Co-authored-by: Graham Christensen <graham@grahamc.com>
2020-07-02 13:50:29 -04:00
Will Fancher
05f8cba1b6
ZFS: Pipe /dev/null into the stage 2 load-key script
...
Just in case something reads stdin, so that `while read ds kl` doesn't
miss anything
2020-07-02 13:50:28 -04:00
Will Fancher
0d55d48f0f
ZFS: Ask for stage 2 encryption passwords using systemd-ask-password
2020-06-23 06:25:21 -04:00
datafoo
431106a17e
nixos/zfs: add missing dependendy nettools
...
Fix #87823
2020-05-18 11:25:00 +02:00
Jörg Thalheim
5fb2a9d8c7
Merge pull request #79828 from Mic92/zed
...
nixos/zfs: populate PATH with needed programs for zed
2020-04-02 13:42:01 +01:00
Peter Hoeg
8a31cf1459
zfs: document systemd-udev-settle dependency
2020-03-21 11:15:06 +08:00
Jörg Thalheim
8f543ed80d
nixos/zfs: continue trimming also if one pool fails
...
fixes https://github.com/NixOS/nixpkgs/issues/81602
2020-03-03 11:22:07 +00:00
Jörg Thalheim
92bede3102
nixos/zfs: populate PATH with needed programs for zed
2020-02-11 14:01:22 +00:00
Silvan Mosberger
4ee3e8b21d
nixos/treewide: Move rename.nix imports to their respective modules
...
A centralized list for these renames is not good because:
- It breaks disabledModules for modules that have a rename defined
- Adding/removing renames for a module means having to find them in the
central file
- Merge conflicts due to multiple people editing the central file
2019-12-10 02:51:19 +01:00
nyanloutre
c082e13ecb
nixos/zfs: Adding ZED configuration options
...
Co-authored-by: sjau <github.com@sjau.ch>
2019-12-04 20:29:19 +01:00
Jörg Thalheim
faa7ce3ee5
Merge pull request #70240 from woffs/pr-etc-zpool.d
...
nixos module zfs: provide /etc/zfs/zpool.d
2019-10-15 11:45:52 +01:00
Jörg Thalheim
9a89467606
nixos/zfs: simplify logic for scrub/autosnapshot service
...
This makes them consistent with the way zfs.trim is enabled
and allow to enable them by default in future.
2019-10-14 10:30:57 +01:00
Jörg Thalheim
692656daf8
nixos/zfs: avoid script derivation for trim service
...
Since we only have a single pipe we can save the overhead of building a derivation
when creating the zfs trim service file when building the system.
2019-10-08 11:11:06 +01:00
Jörg Thalheim
a412d90e10
nixos/zfs: only enable trim if zfs is enabled
...
Also don't fail the service if there are no pools yet.
This might happen on installation ISOs.
2019-10-07 10:44:56 +01:00
Frank Doepper
3065d00d74
nixos module zfs: provide /etc/zfs/zpool.d
...
The scripts for zpool iostat -c and zpool status -c are located in
/etc/zfs/zpool.d
2019-10-02 12:34:09 +02:00
Svein Ove Aas
e4f975765f
nixos/zfs: Enable trim by default
2019-09-27 18:35:03 +01:00
volth
35d68ef143
treewide: remove redundant quotes
2019-08-26 21:40:19 +00:00
Jörg Thalheim
1d86714a2b
nixos/zfs: add trim service
...
Introduces a trim timer similar to the fstrim service.
According to zpool(8) for consumer hardware periodic manual TRIM
is preferred over automatic TRIM that ZFS implements.
The period of one week is based on recommendations of fstrim.
2019-07-25 12:47:43 +01:00
Ivan Jager
a38449f159
nixos/zfs: enable requestEncryptionCredentials by default
...
Since zfsStable now supports encryption, it no longer makes sense to set
the default based on whether we're using zfsUnstable
2019-07-04 16:11:52 -05:00
Silvan Mosberger
852fe410fc
nixos/zfs: Remove requestEncryptionCredentials assertion
...
zfs >= 0.8 supporting encryption is now stable
2019-06-21 03:33:09 +02:00
Jörg Thalheim
11b8a5f20e
zfs: 0.7.13 -> 0.8.0
...
Same as zfsUnstable for the moment.
We still keep the zfsUnstable expression as we likely
need it in the near future again.
Also remove spl since it is no longer needed.
2019-06-06 10:07:43 +01:00
Linus Heckemann
783f2c84e8
nixos/zfs: autoscrub only after boot is complete
...
Fixes #53583
2019-01-14 21:00:20 +01:00
Andrew Dunham
c3e004799c
Hide useless errors when waiting for zpool to be ready
2018-10-16 02:45:25 -07:00
Jörg Thalheim
4360a87c45
linuxPackages.zfsUnstable: 2018-05-22 -> 2018-08-13
...
spl was merged into zfs master
2018-08-14 14:12:07 +02:00
Jörg Thalheim
43595c7884
zfsLegacyCrypto: remove
...
This package was only mandatory for migration for people on zfsUnstable
in nixos unstable.
2018-08-13 19:53:50 +02:00
volth
87f5930c3f
[bot]: remove unreferenced code
2018-07-20 18:48:37 +00:00
Svein Ove Aas
cfd8c4ee88
zfs: Improve import handling
2018-07-02 21:14:45 +01:00
Frank Doepper
c5da007af5
nixos/zfs: load encryption keys for all pools ( #41846 )
...
fixes #41838
At the moment it works fine for "file://" keys, but does not work for
dataPools with "prompt" keys, because the passphrase cannot be entered
(yet).
2018-06-28 11:04:30 +01:00
Frank Doepper
673ecfcbaa
nixos/zfs: mount AFTER import
2018-06-15 20:58:43 +02:00
Frank Doepper
bea4323acf
nixos/zfs: enable zfs services
2018-06-13 16:31:05 +02:00
Svein Ove Aas
deb6c6e052
zfs: Fix "zfs-sync" for modern systemd
2018-06-09 01:17:04 +01:00
Jörg Thalheim
7663de114a
lxd: 2.16 -> 3.0.0
2018-04-14 11:02:24 +01:00
Benjamin Andresen
96f10e7e49
zfs.autoSnapshot: make frequent
run every 15 mins
...
fixes bug that there is 30 minutes between hh:45 and hh:15 every hour.
2018-04-11 16:45:00 +02:00
Jörg Thalheim
b6bcba6537
nixos/zfs: fix typo in enableLegacyCrypto description
2018-02-08 10:24:47 +00:00
sjau
0d65e2e0e5
zfs: add migration path for new crypto format
...
fixes #34559
2018-02-07 20:46:16 +00:00
Graham Christensen
9f31fe81aa
nixos: zfs: correct the networking.hostId error message
...
Users were confused that the error message said config.networking.hostId, and indeed that did nothing to fix their problem.
Update the error message to specify the option they should actually set.
2017-12-20 17:56:03 -05:00
Jörg Thalheim
9164517c18
nixos/zfs: import encrypted datasets by default for zfsUnstable
2017-09-26 09:08:53 +01:00
Jörg Thalheim
1ecf3e862f
zfsUnstable: init at 2017-09-12
2017-09-15 17:59:37 +02:00
Robin Gloster
2799a94963
zfs, spl: 0.6.5.11 -> 0.7.0
2017-07-27 19:00:54 +02:00
Jörg Thalheim
6b0d8027ef
zfs: zed service is now called zfs-zed
...
fixes #25566
2017-05-07 10:22:14 +01:00
Franz Pletz
fb50cde71e
nixos/treewide: systemd.time is in manvolume 7
...
cc #23396
2017-03-21 08:28:53 +01:00
Franz Pletz
9536169074
nixos/treewide: remove boolean examples for options
...
They contain no useful information and increase the length of the
autogenerated options documentation.
See discussion in #18816 .
2017-03-17 23:36:19 +01:00
Franz Pletz
7566b36259
zfs.autoScrub service: init
2017-03-02 17:13:54 +01:00
Jörg Thalheim
4029470a6f
zfs: add unstable variant
...
Until now nixos only delivered the latest zfs release. This release is often not
compatible with the latest mainline kernel. Therefor an unstable variant is
added, which might be based on testing releases or git revisions.
fixes #21359
2017-01-05 08:40:50 +01:00
Jan Malakhovski
b267785c43
nixos: generalize copy-paste from stage-1 and zfs to utils
2016-08-23 18:14:06 +00:00