From 361959d426e45bf44077e0d49f54a034395a36e3 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 29 Apr 2025 18:38:38 -0700 Subject: don't install packages via homebrew We can install everything through nix at this point. Add a helper function to check the type of the machine so we can install some packages for work vs. personal. --- nix/users/fcuny/home-manager.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'nix/users/fcuny/home-manager.nix') diff --git a/nix/users/fcuny/home-manager.nix b/nix/users/fcuny/home-manager.nix index 1298eb8..1c2077c 100644 --- a/nix/users/fcuny/home-manager.nix +++ b/nix/users/fcuny/home-manager.nix @@ -1,6 +1,9 @@ { darwin, systemName, ... }: { lib, ... }: +let + machineUtils = import ../../lib/machine-utils.nix { inherit lib; }; +in { home.stateVersion = "23.05"; @@ -20,5 +23,6 @@ ./dev.nix ./media.nix ] - ++ lib.optionals (systemName == "hq-kwny2vh41p") [ ./work.nix ]; + ++ lib.optionals (machineUtils.isMachineType "work" systemName) [ ./work.nix ] + ++ lib.optionals (machineUtils.isMachineType "personal" systemName) [ ./personal.nix ]; } -- cgit v1.2.3