diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-04-29 18:38:38 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-04-29 18:38:38 -0700 |
| commit | 361959d426e45bf44077e0d49f54a034395a36e3 (patch) | |
| tree | fded638c813f6d7b7faaef513b25afa4811d6a17 /nix/users/fcuny/home-manager.nix | |
| parent | don't use dape with emacs (diff) | |
| download | infra-361959d426e45bf44077e0d49f54a034395a36e3.tar.gz | |
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.
Diffstat (limited to '')
| -rw-r--r-- | nix/users/fcuny/home-manager.nix | 6 |
1 files changed, 5 insertions, 1 deletions
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 ]; } |
