about summary refs log tree commit diff
path: root/nix/users/fcuny/home-manager.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/users/fcuny/home-manager.nix')
-rw-r--r--nix/users/fcuny/home-manager.nix145
1 files changed, 74 insertions, 71 deletions
diff --git a/nix/users/fcuny/home-manager.nix b/nix/users/fcuny/home-manager.nix
index 6c3342b..f18be40 100644
--- a/nix/users/fcuny/home-manager.nix
+++ b/nix/users/fcuny/home-manager.nix
@@ -1,80 +1,83 @@
 { ... }:
 
-{ config, lib, pkgs, ... }: {
+{ config, lib, pkgs, ... }:
+let isLinux = pkgs.stdenv.isLinux;
+in {
   home.stateVersion = "23.05";
 
   xdg.enable = true;
 
-  home.packages = with pkgs; [
-    # go
-    go-tools
-    golangci-lint
-    gopls
-    delve
-
-    # docker
-    dive # explore layers in docker images
-
-    # shell
-    shellcheck
-
-    # git
-    gitAndTools.pre-commit
-    git-credential-manager
-    gh
-
-    # shell utils
-    coreutils
-    direnv
-    dust
-    procs
-    ripgrep
-    tree
-    wget
-
-    # network
-    bandwhich
-
-    # data manipulation
-    jless
-    jq
-    yq
-
-    # encryption
-    age
-
-    # media
-    mpv
-    ffmpeg
-
-    # dicts
-    aspell
-    aspellDicts.en
-    aspellDicts.en-computers
-    aspellDicts.en-science
-
-    # nix
-    nil
-    nix-direnv
-    nixd
-    nixfmt-classic
-    nixpkgs-fmt
-    nil # nix lsp
-
-    # k8s
-    kind # k8s in docker
-    kubebuilder # generate controller
-    kubectl
-    kubernetes-helm # deploy applications
-    kubie # kubeconfig browser https://github.com/sbstp/kubie
-    kubelogin-oidc # OIDC plugin
-    k9s # object explorer
-
-    # hashicorp
-    boundary
-    nomad-pack
-    tfswitch
-  ];
+  home.packages = with pkgs;
+    [
+      # go
+      go-tools
+      golangci-lint
+      gopls
+      delve
+
+      # docker
+      dive # explore layers in docker images
+
+      # shell
+      shellcheck
+
+      # git
+      gitAndTools.pre-commit
+      git-credential-manager
+      gh
+
+      # shell utils
+      coreutils
+      direnv
+      dust
+      procs
+      ripgrep
+      tree
+      wget
+
+      # network
+      bandwhich
+
+      # data manipulation
+      jless
+      jq
+      yq
+
+      # encryption
+      age
+
+      # media
+      mpv
+      ffmpeg
+
+      # dicts
+      aspell
+      aspellDicts.en
+      aspellDicts.en-computers
+      aspellDicts.en-science
+
+      # nix
+      nil
+      nix-direnv
+      nixd
+      nixfmt-classic
+      nixpkgs-fmt
+      nil # nix lsp
+
+      # k8s
+      kind # k8s in docker
+      kubebuilder # generate controller
+      kubectl
+      kubernetes-helm # deploy applications
+      kubie # kubeconfig browser https://github.com/sbstp/kubie
+      kubelogin-oidc # OIDC plugin
+      k9s # object explorer
+
+      # hashicorp
+      boundary
+      nomad-pack
+      tfswitch
+    ] ++ (lib.optionals (isLinux) [ htop ]);
 
   programs.go = {
     enable = true;