nix-config/home/packages/default.nix
Bruno BELANYI 7b7041e5b5 home: git: add git-related packages when enabled
Instead of adding them in the general packages section.
2021-10-13 15:36:28 +02:00

26 lines
501 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.my.home.packages;
in
{
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 ([
file
rr
termite.terminfo
] ++ cfg.additionalPackages);
}