nix-config/home/packages/default.nix
Bruno BELANYI b1cff1b8a3
All checks were successful
continuous-integration/drone/push Build is passing
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);
}