mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
Get rid of the only use of mkNotdef
This commit is contained in:
parent
335422f7be
commit
5b8c4d2a7d
|
@ -72,11 +72,8 @@ with utils;
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
device =
|
device = mkIf options.label.isDefined
|
||||||
if options.label.isDefined then
|
"/dev/disk/by-label/${config.label}";
|
||||||
"/dev/disk/by-label/${config.label}"
|
|
||||||
else
|
|
||||||
mkNotdef;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue