From 4225bdd1032966c28daa647128d5b815bc3861b6 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 7 May 2021 17:32:26 +0200 Subject: [PATCH] home: packages: add option for additional packages --- home/packages.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/home/packages.nix b/home/packages.nix index b951f9e..7d87fc6 100644 --- a/home/packages.nix +++ b/home/packages.nix @@ -3,11 +3,21 @@ let cfg = config.my.home.packages; in { - options.my.home.packages = with lib.my; { - enable = mkDisableOption "user packages"; + options.my.home.packages = with lib; { + enable = my.mkDisableOption "user packages"; + + additionalPackages = mkOption { + type = with types; listOf package; + default = [ ]; + example = literalExample '' + with pkgs; [ + quasselClient + ] + ''; + }; }; - config.home.packages = with pkgs; lib.mkIf cfg.enable [ + config.home.packages = with pkgs; lib.mkIf cfg.enable ([ # Git related gitAndTools.git-absorb gitAndTools.git-revise @@ -16,5 +26,5 @@ in rr # Terminal prettiness termite.terminfo - ]; + ] ++ cfg.additionalPackages); }