Skip to content

Commit

Permalink
fix(nixosProfiles): load.transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed Oct 11, 2023
1 parent bdd1274 commit 3294052
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lib/exporter/pops.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ in
type = "nixosProfiles";
};
};

loadNixOSProfiles = self.loadNixOSModules.addLoadExtender {
load = {
src = inputs.self.outPath + "/nixos/nixosProfiles";
type = "nixosProfiles";
transformer = [ (_: _: _) ];
};
};

Expand Down
7 changes: 4 additions & 3 deletions tests/darwin/expr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ in
darwinFontProfile =
(exporter.layouts.darwinConfiguration [
omnibus.darwinProfiles.presets.homebrew
omnibus.darwinProfiles.presets.nix
omnibus.darwinProfiles.presets.nix.default
{ homebrew.__profiles__.fonts = true; }
]).config.homebrew.casks;

darwinNixProfile =
(exporter.layouts.darwinConfiguration [ omnibus.darwinProfiles.presets.nix ])
.config.nix.extraOptions;
(exporter.layouts.darwinConfiguration [
omnibus.darwinProfiles.presets.nix.default
]).config.nix.extraOptions;
}

// lib.optionalAttrs trace { }

0 comments on commit 3294052

Please sign in to comment.