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 | |
| 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 'nix/users')
| -rw-r--r-- | nix/users/fcuny/dev.nix | 2 | ||||
| -rw-r--r-- | nix/users/fcuny/home-manager.nix | 6 | ||||
| -rw-r--r-- | nix/users/fcuny/personal.nix | 7 |
3 files changed, 14 insertions, 1 deletions
diff --git a/nix/users/fcuny/dev.nix b/nix/users/fcuny/dev.nix index f95c04d..3fa97da 100644 --- a/nix/users/fcuny/dev.nix +++ b/nix/users/fcuny/dev.nix @@ -7,6 +7,8 @@ home.packages = with pkgs; [ _1password-cli aider-chat + docker + iterm2 wireshark # go 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 ]; } diff --git a/nix/users/fcuny/personal.nix b/nix/users/fcuny/personal.nix new file mode 100644 index 0000000..9dc9ebf --- /dev/null +++ b/nix/users/fcuny/personal.nix @@ -0,0 +1,7 @@ +{ pkgs, ... }: +{ + home.packages = with pkgs; [ + vlc-bin + zoom-us + ]; +} |
