nixos/btrfs: refactor global with lib;
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user