Skip to content

Commit

Permalink
fix(ccache): optional -> optionals
Browse files Browse the repository at this point in the history
we are checking a array not a single so we need optionals lol
  • Loading branch information
isabelroses committed Sep 28, 2024
1 parent 99637d1 commit 2bf946e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/profiles/meta/graphical/programs/ccache.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, config, ... }:
let
inherit (lib.lists) singleton optional;
inherit (lib.lists) singleton optionals;
inherit (lib.trivial) const;

cfg = config.programs.ccache;
Expand All @@ -21,7 +21,7 @@ in

nix.settings.extra-sandbox-paths = [ cfg.cacheDir ];

nixpkgs.overlays = optional (cfg.enable && cfg.packageNames == [ ]) (
nixpkgs.overlays = optionals (cfg.enable && cfg.packageNames == [ ]) (
singleton (
const (super: {
ccacheWrapper = super.ccacheWrapper.override {
Expand Down

0 comments on commit 2bf946e

Please sign in to comment.