From 2e46123cb14b7a4160fff501087b79541df2731e Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 29 Jul 2023 16:15:19 +0200 Subject: Fix(hosts/isimud): Import the whole system configuration --- system/disks/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'system/disks') diff --git a/system/disks/default.nix b/system/disks/default.nix index 56260c7a..56fb550d 100644 --- a/system/disks/default.nix +++ b/system/disks/default.nix @@ -12,6 +12,7 @@ ]; in { options.soispha.disks = { + enable = lib.mkEnableOption "disk setup with disko"; disk = lib.mkOption { type = lib.types.path; example = lib.literalExpression "/dev/disk/by-uuid/0442cb6d-f13a-4635-b487-fa76189774c5"; @@ -37,7 +38,7 @@ in { }; }; - config = { + config = lib.mkIf cfg.enable { systemd = lib.recursiveUpdate (import ./hibernate.nix {inherit pkgs;}) (import ./fstrim.nix {inherit pkgs lib cfg;}); disko.devices = { -- cgit 1.4.1