about summary refs log tree commit diff
path: root/nixos/modules/tasks/filesystems
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2021-12-05 22:36:38 +0100
committerpennae <github@quasiparticle.net>2021-12-09 01:42:24 +0100
commit9407761763a61a4f0551c43aa3b818d7ede1fa39 (patch)
treea13ad016a080781077e9f55698d39fcb8fe06b95 /nixos/modules/tasks/filesystems
parent3226c5aded7bbe52cadf323eb45d3db83408ec6c (diff)
downloadnixlib-9407761763a61a4f0551c43aa3b818d7ede1fa39.tar
nixlib-9407761763a61a4f0551c43aa3b818d7ede1fa39.tar.gz
nixlib-9407761763a61a4f0551c43aa3b818d7ede1fa39.tar.bz2
nixlib-9407761763a61a4f0551c43aa3b818d7ede1fa39.tar.lz
nixlib-9407761763a61a4f0551c43aa3b818d7ede1fa39.tar.xz
nixlib-9407761763a61a4f0551c43aa3b818d7ede1fa39.tar.zst
nixlib-9407761763a61a4f0551c43aa3b818d7ede1fa39.zip
treewide: add defaultText for options using other shortcut bindings
Diffstat (limited to 'nixos/modules/tasks/filesystems')
-rw-r--r--nixos/modules/tasks/filesystems/zfs.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/tasks/filesystems/zfs.nix b/nixos/modules/tasks/filesystems/zfs.nix
index a9100da1aa40..3bc0dedec00e 100644
--- a/nixos/modules/tasks/filesystems/zfs.nix
+++ b/nixos/modules/tasks/filesystems/zfs.nix
@@ -1,4 +1,4 @@
-{ config, lib, pkgs, utils, ... }:
+{ config, lib, options, pkgs, utils, ... }:
 #
 # TODO: zfs tunables
 
@@ -8,6 +8,7 @@ with lib;
 let
 
   cfgZfs = config.boot.zfs;
+  optZfs = options.boot.zfs;
   cfgExpandOnBoot = config.services.zfs.expandOnBoot;
   cfgSnapshots = config.services.zfs.autoSnapshot;
   cfgSnapFlags = cfgSnapshots.flags;
@@ -347,6 +348,7 @@ in
     services.zfs.zed = {
       enableMail = mkEnableOption "ZED's ability to send emails" // {
         default = cfgZfs.package.enableMail;
+        defaultText = literalExpression "config.${optZfs.package}.enableMail";
       };
 
       settings = mkOption {