systemd mount units: better handling of mandatory options
This commit is contained in:
parent
ebf4816717
commit
7e70cffc45
@ -205,14 +205,12 @@ rec {
|
||||
mountOptions = unitOptions // {
|
||||
|
||||
what = mkOption {
|
||||
default = "";
|
||||
example = "/dev/sda1";
|
||||
type = types.uniq types.string;
|
||||
description = "Absolute path of device node, file or other resource. (Mandatory)";
|
||||
};
|
||||
|
||||
where = mkOption {
|
||||
default = "";
|
||||
example = "/mnt";
|
||||
type = types.uniq types.string;
|
||||
description = ''
|
||||
|
@ -292,8 +292,6 @@ let
|
||||
};
|
||||
|
||||
mountToUnit = name: def:
|
||||
assert def.mountConfig.What != "";
|
||||
assert def.mountConfig.Where != "";
|
||||
{ inherit (def) wantedBy enable;
|
||||
text =
|
||||
''
|
||||
|
Loading…
Reference in New Issue
Block a user