aboutsummaryrefslogtreecommitdiff
path: root/nix/users/fcuny/home-manager.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-04-29 18:38:38 -0700
committerFranck Cuny <franck@fcuny.net>2025-04-29 18:38:38 -0700
commit361959d426e45bf44077e0d49f54a034395a36e3 (patch)
treefded638c813f6d7b7faaef513b25afa4811d6a17 /nix/users/fcuny/home-manager.nix
parentdon't use dape with emacs (diff)
downloadinfra-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.nix6
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 ];
}