From 588cf0b35aeed65e157dd9027e9ad50ed6ef58d0 Mon Sep 17 00:00:00 2001 From: Naxdy Date: Sat, 11 May 2024 11:50:58 +0200 Subject: [PATCH] nixos/btrfs: refactor global `with lib;` --- nixos/modules/tasks/filesystems/btrfs.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/nixos/modules/tasks/filesystems/btrfs.nix b/nixos/modules/tasks/filesystems/btrfs.nix index 17e3a274c0e9..a5a95992c209 100644 --- a/nixos/modules/tasks/filesystems/btrfs.nix +++ b/nixos/modules/tasks/filesystems/btrfs.nix @@ -1,8 +1,18 @@ { config, lib, pkgs, utils, ... }: -with lib; - let + inherit (lib) + mkEnableOption + mkOption + types + mkMerge + mkIf + optionals + mkDefault + mapAttrsToList + nameValuePair + listToAttrs + filterAttrs; inInitrd = config.boot.initrd.supportedFilesystems.btrfs or false; inSystem = config.boot.supportedFilesystems.btrfs or false;