mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 11:07:44 +00:00
chore: use lib.optionals
This commit is contained in:
parent
3d91319498
commit
bec6fa7f8b
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
{ self, config, inputs, lib, pkgs, ... }: let
|
||||
inherit (lib) attrsToList concatStringsSep const disabled filter filterAttrs flip id isType mapAttrs mapAttrsToList merge mkAfter optionalAttrs;
|
||||
inherit (lib) attrsToList concatStringsSep const disabled filter filterAttrs flip id isType mapAttrs mapAttrsToList merge mkAfter optionalAttrs optionals;
|
||||
inherit (lib.strings) toJSON;
|
||||
|
||||
registryMap = inputs
|
||||
|
@ -42,7 +42,7 @@ in {
|
|||
|> mapAttrs (_: flake: { inherit flake; });
|
||||
|
||||
nix.settings = (import <| self + /flake.nix).nixConfig
|
||||
|> flip removeAttrs (if config.isDarwin then [ "use-cgroups" ] else []);
|
||||
|> flip removeAttrs (optionals config.isDarwin [ "use-cgroups" ]);
|
||||
|
||||
nix.optimise.automatic = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue