Skip to content

Commit

Permalink
add mac-app-util
Browse files Browse the repository at this point in the history
  • Loading branch information
allthatjazzleo committed Apr 21, 2024
1 parent 4968bbc commit 74a5105
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 19 deletions.
9 changes: 7 additions & 2 deletions cells/homemanager/configurations.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
inputs,
cell,
}: let
inherit (inputs) agenix sops-nix nixpkgs home-manager;
inherit (inputs) agenix sops-nix mac-app-util nixpkgs home-manager;
inherit (inputs.cells.users) users;
inherit (cell.home) home;
baseModules = [agenix.homeManagerModules.age sops-nix.homeManagerModules.sops home];
darwinModules =
if nixpkgs.stdenv.hostPlatform.isDarwin
then [mac-app-util.homeManagerModules.default]
else [];
f = _: user:
home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs;
modules = [agenix.homeManagerModules.age sops-nix.homeManagerModules.sops home];
modules = baseModules ++ darwinModules;
extraSpecialArgs = {inherit user;};
};
in {default = builtins.mapAttrs f users;}
134 changes: 117 additions & 17 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
url = "github:numtide/devshell";
inputs.nixpkgs.follows = "nixpkgs";
};
mac-app-util.url = "github:hraban/mac-app-util";
nixago = {
url = "github:nix-community/nixago";
inputs.nixpkgs.follows = "nixpkgs";
Expand Down

0 comments on commit 74a5105

Please sign in to comment.