From 3ccb63b1e5aa98aa50de7b083801f3c380bff823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Fri, 27 Oct 2023 10:31:00 +0300 Subject: [PATCH] hm: add some packages to hm-only home --- flake.nix | 1 + modules/base/users/default.nix | 1 + shared/home/default.nix | 33 +++++++++++++++++++++++---------- 3 files changed, 25 insertions(+), 10 deletions(-) diff --git a/flake.nix b/flake.nix index d42f058..ba5ccc0 100644 --- a/flake.nix +++ b/flake.nix @@ -274,6 +274,7 @@ stateVersion = "23.05"; email = "motiejusja@wix.com"; devEnvironment = true; + hmOnly = true; }; }; diff --git a/modules/base/users/default.nix b/modules/base/users/default.nix index 1c41933..da7c42f 100644 --- a/modules/base/users/default.nix +++ b/modules/base/users/default.nix @@ -66,6 +66,7 @@ in { inherit pkgs; inherit (config.mj) stateVersion; inherit (config.mj.base.users) devEnvironment; + hmOnly = false; email = "motiejus@jakstys.lt"; }) { diff --git a/shared/home/default.nix b/shared/home/default.nix index 9b3436f..560d3e1 100644 --- a/shared/home/default.nix +++ b/shared/home/default.nix @@ -4,6 +4,7 @@ stateVersion, email, devEnvironment, + hmOnly, ... }: { home = { @@ -14,18 +15,30 @@ }; home.packages = with pkgs; - if devEnvironment - then [ - go + ( + if devEnvironment + then [ + go - zigpkgs."0.11.0" - sbt + zigpkgs."0.11.0" + sbt - scala_2_12 - metals - coursier - ] - else []; + scala_2_12 + metals + coursier + ] + else [] + ) + ++ ( + if hmOnly + then [ + ncdu + tokei + vimv-rs + hyperfine + ] + else [] + ); programs.direnv.enable = true;