about summary refs log tree commit diff
path: root/nixos/modules/tasks
AgeCommit message (Collapse)AuthorFilesLines
2023-01-01nixos/bcachefs: fix boot with systemd enabled initrdJörg Thalheim1-2/+13
2022-12-29Merge pull request #203171 from ElvishJerricco/zfs-fix-requested-credentialsWill Fancher1-10/+15
nixos/zfs: Ensure pool has datasets to decrypt
2022-12-28envfs: init at 1.0.0Jörg Thalheim1-0/+51
2022-12-26nixos/filesystems: require fstab options list be non-emptyLily Foster1-1/+1
When the option list is empty, the fstab generator does not automatically add "defaults" and generates a non-working fstab (since it just emits two spaces around where the options would have been which is only technically one fstab separator).
2022-12-24nixos/zfs: Ensure pool has datasets to decryptWill Fancher1-10/+15
2022-12-17nixos/zfs: assert no force import with hibernationJakub Sokołowski1-0/+4
According to a ZFS issue about hibernation causing data corruption: https://github.com/openzfs/zfs/issues/12842 The way this happens is if the system force imports a pool that was suspended during hibernation. I've had this happen twice on NixOS and I'd like to avoid having this happen again, to me or others. To do this I've added an assertion that makes sure you can't have `forceImportRoot` or `forceImportAll` enabled with `allowHibernation`. Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-12-15lib.replaceChars: warn about being a deprecated aliasArtturin1-3/+3
replaceStrings has been in nix since 2015(nix 1.10) so it is safe to remove the fallback https://github.com/nixos/nix/commit/d6d5885c1567454754a0d260521bafa0bd5e7fdb
2022-12-01Merge pull request #117371 from grahamc/sysctl-hostnameRyan Lahfa1-3/+4
network-interfaces: set hostname from sysctl if defined
2022-11-27nixos/filesystems: fix a typo in docsVladimír Čunát1-1/+1
2022-11-24Merge pull request #197925 from SuperSandro2000/lvm2Sandro1-1/+5
2022-11-20nixos: Add ext to fsPackages in stage 2 with systemd-initrd enabledWill Fancher1-1/+2
2022-11-19Merge pull request #197254 from Atemu/fstab-escape-optionsMartin Weinelt1-1/+1
2022-11-15Revert "nixos: Fix fsck with systemd 251.6 and later"Will Fancher1-5/+1
This reverts commit d9b1bde390eb133a3da66c8abd902ea2b754938c.
2022-11-15nixos: Fix fsck with systemd 251.6 and lateraszlig1-1/+5
Version 251.6 of systemd introduced a small change[1] that now checks whether the fsck command is available in *addition* to the filesystem specific fsck.$fsname executable. When bumping systemd to version 251.7 on our side[2], we introduced that change. This subsequently caused our "fsck" test to fail and it looks like this was an oversight during the pull request[3] introducing the bump. Since the fsck wrapper binary is in util-linux, I decided to address this by adding util-linux to fsPackages because util-linux is already part of the closure of any NixOS system so the impact should be pretty low. [1]: https://github.com/systemd/systemd-stable/commit/73db7d99323c236625656f906eb4e429613d324b [2]: https://github.com/NixOS/nixpkgs/commit/844a08cc06b5c0703ba37f2318ef5b7d90665d04 [3]: https://github.com/NixOS/nixpkgs/pull/199618 Signed-off-by: aszlig <aszlig@nix.build>
2022-11-09nixos/lvm: replace boot.isContainer with services.lvm.enableSandro Jäckel1-1/+5
2022-11-09Merge pull request #194759 from hercules-ci/fqdn-or-hostnameRobert Hensing1-1/+21
nixos: Add `networking.fqdnOrHostName`
2022-10-31Merge pull request #194766 from ncfavier/proxy-arpNaïm Favier1-2/+2
2022-10-29Merge pull request #171680 from bryanasdev000/zfshibernationThiago Kenji Okada1-0/+13
nixos/zfs: introduce option to control hibernation
2022-10-29nixos/zfs: introduce option to control hibernationBryan A. S1-0/+13
2022-10-23nixos/filesystems: add nfs4 to fsToSkipCheckBjørn Forsman1-1/+1
This change fixes this system journal warning for `fileSystems.<name>.fsType = "nfs4"` configurations: systemd-fstab-generator[714]: Checking was requested for "192.168.0.6:/data", but it is not a device.
2022-10-22nixos/filesystems: escape mount options in fstabAtemu1-1/+1
Some mount options might include path names and those often contain spaces and therefore must be escaped. An example which prompted me to make this change is the path of a btrfs subvolume.
2022-10-15networking.fqdnOrHostName: Elaborate and format the descriptionsRobert Hensing1-2/+6
2022-10-06nixos/jfs: correct broken toplevel referenceEdward Tjörnhammar1-1/+1
2022-10-06nixos/network-interfaces: reflect negative settings of `proxyARP`Naïm Favier1-2/+2
Currently, setting `proxyARP` to true enables `proxy_arp`, but setting it to false doesn't disable it. This is surprising and stateful.
2022-10-06nixos: Add networking.fqdnOrHostName option, readOnlyRobert Hensing1-0/+16
2022-10-01Merge pull request #191352 from maifel-maifel/mr-networking-deprecation-noteChristian Kögler1-0/+4
nixos/networking: add a suggestion to use networkd options
2022-09-15nixos/networking: add a suggestion to use networkd optionsdigital1-0/+4
2022-09-12nixos/stratis: initNick Cao1-0/+18
2022-08-31nixos/*: md-convert hidden plaintext optionspennae3-3/+3
most of these are hidden because they're either part of a submodule that doesn't have its type rendered (eg because the submodule type is used in an either type) or because they are explicitly hidden. some of them are merely hidden from nix-doc-munge by how their option is put together.
2022-08-31nixos/*: convert internal option descriptions to MDpennae2-3/+3
we'll have to do it eventually, may as well be now.
2022-08-31nixos/*: automatically convert option descriptionspennae5-11/+11
conversions were done using https://github.com/pennae/nix-doc-munge using (probably) rev f34e145 running nix-doc-munge nixos/**/*.nix nix-doc-munge --import nixos/**/*.nix the tool ensures that only changes that could affect the generated manual *but don't* are committed, other changes require manual review and are discarded.
2022-08-27nixos/network-interfaces: convert option descriptions to MDpennae1-29/+24
2022-08-27nixos/*: literalDocBook -> literalMDpennae1-1/+1
no change to rendered output
2022-08-20Merge pull request #186163 from lilyinstarlight/feature/systemd-stage-1-fs-labelWill Fancher1-17/+31
nixos/systemd-stage-1: unify initrd fstab generation logic with system fstab
2022-08-19nixos/*: automatically convert option docspennae2-14/+14
2022-08-19nixos/*: mark pre-existing markdown descriptions as mdDocpennae2-5/+5
2022-08-19nixos/* eliminate inner whitespace in tags that was missed earlierpennae2-4/+3
nix-doc-munge won't match tags that contain newlines anywhere. most of these have already been removed, but a few obviously made it through.
2022-08-19nixos/network-interfaces-systemd: do not ignore /0 gateway routesPierre Bourdon1-1/+1
While it might seem odd, 0.0.0.0/0 or ::/0 gateways are valid and commonly used on point-to-point links (e.g. a wireguard tunnel) to indicate that all traffic needs to be sent to a given interface. systemd-networkd actually documents this as a valid configuration in its man pages [1]. Tested to do the right thing in one of my NixOS containers using a Wireguard tunnel as its default route. [1] https://www.freedesktop.org/software/systemd/man/systemd.network.html#DefaultRouteOnDevice=
2022-08-18nixos/systemd-stage-1: unify initrd fstab generation logic with system fstabLily Foster1-17/+31
2022-08-15Merge pull request #185413 from Luflosi/skip-fsck-for-more-filesystemsajs1241-1/+1
2022-08-12Merge pull request #185474 from pennae/option-docs-mdpennae4-23/+15
nixos/*: more options md conversion
2022-08-10Merge pull request #185763 from srhb/zfs-scrub-synchronouslyFranz Pletz1-2/+2
nixos/zfs: scrub synchronously
2022-08-09nixos/zfs: scrub synchronouslySarah Brofeldt1-2/+2
This prevents spurious systemd failures if the timer unit starts a new scrub before a long-running one has finished.
2022-08-06fix whitespacePaul Haerle1-1/+1
2022-08-06zfs: Make zpool available for zpool-expand-poolsPaul Haerle1-0/+2
...if cfgExpandOnBoot == "all", otherwise it fails during runtime: ``` Aug 06 19:38:05 nixos zpool-expand-pools-start[981]: /nix/store/ka3vivdray82mi9dql12yf258gkw643l-unit-script-zpool-expand-pools-start/bin/zpool-expand-pools-start: line 3: zpool: command not found ```
2022-08-06nixos/*: automatically convert option docspennae4-15/+15
2022-08-06nixos/filesystems: skip fsck for more filesystemsLuflosi1-1/+1
This commit prevents warning messages like ``` systemd-fstab-generator: Checking was requested for "/path/to/device", but it is not a device. ``` in `dmesg` when one of the filesystems 9p, cifs, prl_fs or vmhgfs is added to the list of `fileSystems`. This happens because the generated /etc/fstab entry contains a non-zero fsck pass number, which doesn't make sense for these filesystems.
2022-08-05nixos/*: normalize manpage references to single-line formpennae4-16/+8
now nix-doc-munge will not introduce whitespace changes when it replaces manpage references with the MD equivalent. no change to the manpage, changes to the HTML manual are whitespace only.
2022-08-03nixos/*: automatically convert option docs to MDpennae2-4/+4
once again using nix-doc-munge (https://github.com/pennae/nix-doc-munge/commit/69d080323ae27c0d8da3967c62b925a9aedb2828)
2022-08-03nixos/*: normalize link formatpennae1-1/+1
make (almost) all links appear on only a single line, with no unnecessary whitespace, using double quotes for attributes. this lets us automatically convert them to markdown easily. the few remaining links are extremely long link in a gnome module, we'll come back to those at a later date.