diff options
author | Franck Cuny <franck@fcuny.net> | 2024-12-17 09:38:54 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2024-12-18 09:05:35 -0800 |
commit | 8c6671c18392eb13d0fbd57a90bcb1a7f3c63889 (patch) | |
tree | ef1b91791cf2e553fe1b251a8f8244467a0d136b /nix/users | |
parent | add support for overlays and add one for `sapi' (diff) | |
download | world-8c6671c18392eb13d0fbd57a90bcb1a7f3c63889.tar.gz |
install some tools only on work machine
Diffstat (limited to 'nix/users')
-rw-r--r-- | nix/users/fcuny/home-manager.nix | 15 | ||||
-rw-r--r-- | nix/users/fcuny/work.nix | 13 |
2 files changed, 18 insertions, 10 deletions
diff --git a/nix/users/fcuny/home-manager.nix b/nix/users/fcuny/home-manager.nix index ca11b80..e975c37 100644 --- a/nix/users/fcuny/home-manager.nix +++ b/nix/users/fcuny/home-manager.nix @@ -1,12 +1,13 @@ -{ darwin, ... }: +{ darwin, systemName, ... }: -{ config, lib, pkgs, ... }: { +{ lib, pkgs, ... }: { home.stateVersion = "23.05"; xdg.enable = true; imports = [ ./shell.nix ./ssh.nix ./git.nix ] - ++ lib.optionals darwin [ ./1password.nix ./go.nix ./k8s.nix ]; + ++ lib.optionals darwin [ ./1password.nix ./go.nix ] + ++ lib.optionals (systemName == "hq-c02fk3q7md6t") [ ./work.nix ]; home.packages = with pkgs; [ @@ -14,18 +15,12 @@ age # nix - nil + nil # nix lsp nix-direnv nixd nixfmt-classic nixpkgs-fmt - nil # nix lsp ] ++ (lib.optionals (darwin) [ - # hashicorp - boundary - nomad-pack - tfswitch - # media mpv ffmpeg diff --git a/nix/users/fcuny/work.nix b/nix/users/fcuny/work.nix new file mode 100644 index 0000000..cc80104 --- /dev/null +++ b/nix/users/fcuny/work.nix @@ -0,0 +1,13 @@ +{ pkgs, ... }: { + imports = [ ./k8s.nix ]; + + home.packages = with pkgs; [ + # hashicorp + boundary + nomad-pack + tfswitch + + # for ssh + sapi + ]; +} |