reo101
2941536b80
Also stop passing `outputs` around, prefer `inputs.self` Also put all `auto_` in `readOnly` `internal` options - `autoModules`, `autoConfigurations` and `autoPackages` Do not export packages as overlay (causes an infinite recursion) - this is documented on the two places it has effect on -- in `./overlays/default.nix` and `./modules/flake/configurations.nix` -- in `autoConfigurations` we manually extend `pkgs` with the flake packages Allow packages to say what `systems` they are compatible with - See `./pkgs/swww/systems.nix` - disabled for all systems - See `./pkgs/pngpaste/systems.nix` - enabled only for `darwin` targets
22 lines
560 B
Nix
22 lines
560 B
Nix
{ inputs, ... }:
|
|
{ lib, pkgs, config, ... }:
|
|
|
|
{
|
|
imports = [ ];
|
|
|
|
options = { };
|
|
|
|
config = {
|
|
home.activation = lib.mkIf pkgs.stdenv.isDarwin {
|
|
trampolineApps =
|
|
let
|
|
mac-app-util = inputs.mac-app-util.packages.${pkgs.stdenv.system}.default;
|
|
in
|
|
lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
|
fromDir="$HOME/Applications/Home Manager Apps"
|
|
toDir="$HOME/Applications/Home Manager Trampolines"
|
|
${mac-app-util}/bin/mac-app-util sync-trampolines "$fromDir" "$toDir"
|
|
'';
|
|
};
|
|
};
|
|
}
|