0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

Add option systemd.automounts, for definining automount units

This commit is contained in:
Rickard Nilsson 2013-09-23 22:56:05 +02:00
parent 9df40867b9
commit 3a17c2b30b
2 changed files with 59 additions and 1 deletions

View file

@ -323,4 +323,28 @@ rec {
};
};
automountOptions = unitOptions // {
where = mkOption {
example = "/mnt";
type = types.uniq types.string;
description = ''
Absolute path of a directory of the mount point.
Will be created if it doesn't exist. (Mandatory)
'';
};
automountConfig = mkOption {
default = {};
example = { DirectoryMode = "0775"; };
type = types.attrs;
description = ''
Each attribute in this set specifies an option in the
<literal>[Automount]</literal> section of the unit. See
<citerefentry><refentrytitle>systemd.automount</refentrytitle>
<manvolnum>5</manvolnum></citerefentry> for details.
'';
};
};
}