summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/write-text.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/system/write-text.nix b/modules/system/write-text.nix
index f15fedd..1fc97dd 100644
--- a/modules/system/write-text.nix
+++ b/modules/system/write-text.nix
@@ -22,8 +22,8 @@ in
};
text = mkOption {
- default = null;
- type = types.nullOr types.lines;
+ type = types.lines;
+ default = "";
description = ''
Text of the file.
'';
@@ -50,7 +50,7 @@ in
config = {
- source = mkIf (config.text != null) (mkDefault sourceDrv);
+ source = mkIf (config.text != "") (mkDefault sourceDrv);
};
}