diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-24 01:18:59 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-24 01:18:59 +0100 |
commit | e1f1aa64967392b99ada35d9acc7c7841feb5c6a (patch) | |
tree | 11267afc5cf2efd665c1152c34bfbb29f4657a6c /modules/by-name/di | |
parent | test(scripts/lint_missing_tests.sh): Remove (diff) | |
download | nixos-server-e1f1aa64967392b99ada35d9acc7c7841feb5c6a.tar.gz nixos-server-e1f1aa64967392b99ada35d9acc7c7841feb5c6a.zip |
fix(modules/disko): Actually honor `cfg.enable`
Diffstat (limited to '')
-rw-r--r-- | modules/by-name/di/disko/module.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/by-name/di/disko/module.nix b/modules/by-name/di/disko/module.nix index 0aff93f..b4fc3c8 100644 --- a/modules/by-name/di/disko/module.nix +++ b/modules/by-name/di/disko/module.nix @@ -3,7 +3,7 @@ lib, ... }: let - cfg = config.system.disko; + cfg = config.vhack.disko; defaultMountOptions = ["compress-force=zstd:15" "noatime"]; in { @@ -17,7 +17,7 @@ in { }; }; - config = { + config = lib.mkIf cfg.enable { disko.devices = { disk.main = { type = "disk"; |