about summary refs log tree commit diff
path: root/nix/users
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-12-08 14:59:03 -0800
committerFranck Cuny <franck@fcuny.net>2024-12-08 15:36:32 -0800
commit48ea2837adff1483d6d5e8dd6f65611914ddda88 (patch)
tree8adb236371b1b3db63d450bb98b583b5d0f67cc6 /nix/users
parentrefactor overall configuration (diff)
downloadworld-48ea2837adff1483d6d5e8dd6f65611914ddda88.tar.gz
more refactoring
Diffstat (limited to 'nix/users')
-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;