nixfiles/lib/darwin/apps/default.nix

20 lines
620 B
Nix
Raw Permalink Normal View History

{ pkgs, ... }:
2024-05-01 06:01:46 +03:00
# i want to be able to declaratively *provision* gui apps on macos,
# but have them manage themselves later on, not managed by nix-darwin,
# since most of them are auto-updating and managing them entirely through
# nix is a bit of a pain.
#
# homebrew sucks and i don't want to give it *any* recognition, so guess
# i'll just handle dmg's myself :D
let
2024-05-01 07:43:04 +03:00
repo =
(pkgs.callPackage ./productivity.nix {})
// (pkgs.callPackage ./system.nix {});
in appsFactory: {
system.activationScripts.postUserActivation.text = ''
set -eau
${builtins.concatStringsSep "\n" (appsFactory repo)}
'';
}