nixos/btrfs: refactor global with lib;

This commit is contained in:
Naxdy
2024-05-11 11:50:58 +02:00
parent 6441036f84
commit 804bc033a6

View File

@@ -1,8 +1,18 @@
{ config, lib, pkgs, utils, ... }: { config, lib, pkgs, utils, ... }:
with lib;
let let
inherit (lib)
mkEnableOption
mkOption
types
mkMerge
mkIf
optionals
mkDefault
mapAttrsToList
nameValuePair
listToAttrs
filterAttrs;
inInitrd = config.boot.initrd.supportedFilesystems.btrfs or false; inInitrd = config.boot.initrd.supportedFilesystems.btrfs or false;
inSystem = config.boot.supportedFilesystems.btrfs or false; inSystem = config.boot.supportedFilesystems.btrfs or false;