From 5b8c4d2a7d3fc59636e44c69f7bddd5ffd9b0bed Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 28 Oct 2013 00:08:07 +0100 Subject: [PATCH] Get rid of the only use of mkNotdef --- nixos/modules/config/swap.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/nixos/modules/config/swap.nix b/nixos/modules/config/swap.nix index 7d4654ae287..fb171050d3e 100644 --- a/nixos/modules/config/swap.nix +++ b/nixos/modules/config/swap.nix @@ -72,11 +72,8 @@ with utils; }; config = { - device = - if options.label.isDefined then - "/dev/disk/by-label/${config.label}" - else - mkNotdef; + device = mkIf options.label.isDefined + "/dev/disk/by-label/${config.label}"; }; };