nixos/btrfs: refactor global with lib;

This commit is contained in:
Naxdy
2024-08-04 17:36:41 +02:00
committed by gador
parent 1971cbe0f2
commit 588cf0b35a
+12 -2
View File
@@ -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;