Skip to content

Commit 4eccb53

Browse files
committed
nixos/tmpfiles: fix docs
Closes #381822 Apparently, I swapped `path` and `tmpfiles-type` in 2be50b1. Sorry about that 🫠 Also giving `systemd.tmpfiles.settings.<config-name>.<path>.<tmpfiles-type>.type` a better default in the manual than `‹name›`, i.e. `‹tmpfiles-type›` so that it corresponds to the placeholders in the attribute path.
1 parent 49f1c6e commit 4eccb53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nixos/modules/system/boot/systemd/tmpfiles.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ let
2929
};
3030
};
3131
default = {};
32-
type = attrsWith' "config-name" (attrsWith' "tmpfiles-type" (attrsWith' "path" (types.submodule ({ name, config, ... }: {
32+
type = attrsWith' "config-name" (attrsWith' "path" (attrsWith' "tmpfiles-type" (types.submodule ({ name, config, ... }: {
3333
options.type = mkOption {
3434
type = types.str;
3535
default = name;
36+
defaultText = "‹tmpfiles-type›";
3637
example = "d";
3738
description = ''
3839
The type of operation to perform on the file.

0 commit comments

Comments
 (0)