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 83ece62
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 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
10 changes: 5 additions & 5 deletions nixos/darwinProfiles/presets/homebrew.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ in
homebrew = {
enable = true;
# onActivation.cleanup = "zap";
onActivation.upgrade = true;
onActivation.upgrade = lib.mkDefault true;
# Use the nix-darwin brewfile when invoking `brew bundle` imperatively.
global.brewfile = true;
global.lockfiles = false;
global.brewfile = lib.mkDefault true;
global.lockfiles = lib.mkDefault false;
__profiles__ = {
readers = true;
shell = true;
readers = lib.mkDefault true;
shell = lib.mkDefault true;
casks.removePackagesFromProfiles = [ ];
brews.removePackagesFromProfiles = [ ];
};
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 83ece62

Please sign in to comment.