Skip to content

Commit

Permalink
nixos/system: use builtins.elem
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Oct 19, 2023
1 parent c3d5e1d commit c54c75f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nixos/system/btrfs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
enable =
let
inherit (config.boot) initrd supportedFilesystems;
inherit (lib) any;
btrfsInInitrd = any (fs: fs == "btrfs") initrd.supportedFilesystems;
btrfsInSystem = any (fs: fs == "btrfs") supportedFilesystems;
btrfsInInitrd = builtins.elem "btrfs" initrd.supportedFilesystems;
btrfsInSystem = builtins.elem "brtfs" supportedFilesystems;
default = btrfsInInitrd || btrfsInSystem;
in
lib.mkEnableOption "btrfs config" // { inherit default; };
Expand Down

0 comments on commit c54c75f

Please sign in to comment.