Skip to content

Commit 74a5105

Browse files
add mac-app-util
1 parent 4968bbc commit 74a5105

File tree

3 files changed

+125
-19
lines changed

3 files changed

+125
-19
lines changed

cells/homemanager/configurations.nix

+7-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@
22
inputs,
33
cell,
44
}: let
5-
inherit (inputs) agenix sops-nix nixpkgs home-manager;
5+
inherit (inputs) agenix sops-nix mac-app-util nixpkgs home-manager;
66
inherit (inputs.cells.users) users;
77
inherit (cell.home) home;
8+
baseModules = [agenix.homeManagerModules.age sops-nix.homeManagerModules.sops home];
9+
darwinModules =
10+
if nixpkgs.stdenv.hostPlatform.isDarwin
11+
then [mac-app-util.homeManagerModules.default]
12+
else [];
813
f = _: user:
914
home-manager.lib.homeManagerConfiguration {
1015
pkgs = nixpkgs;
11-
modules = [agenix.homeManagerModules.age sops-nix.homeManagerModules.sops home];
16+
modules = baseModules ++ darwinModules;
1217
extraSpecialArgs = {inherit user;};
1318
};
1419
in {default = builtins.mapAttrs f users;}

flake.lock

+117-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
url = "github:numtide/devshell";
1818
inputs.nixpkgs.follows = "nixpkgs";
1919
};
20+
mac-app-util.url = "github:hraban/mac-app-util";
2021
nixago = {
2122
url = "github:nix-community/nixago";
2223
inputs.nixpkgs.follows = "nixpkgs";

0 commit comments

Comments
 (0)