nix-config/modules/home/packages/default.nix

26 lines
492 B
Nix
Raw Normal View History

2021-03-13 01:02:12 +01:00
{ config, lib, pkgs, ... }:
let
cfg = config.my.home.packages;
in
2021-02-20 14:41:44 +01:00
{
options.my.home.packages = with lib; {
enable = my.mkDisableOption "user packages";
additionalPackages = mkOption {
type = with types; listOf package;
default = [ ];
example = literalExample ''
with pkgs; [
quasselClient
]
'';
};
2021-03-13 01:02:12 +01:00
};
config.home.packages = with pkgs; lib.mkIf cfg.enable ([
2022-03-07 12:57:16 +01:00
fd
file
2022-03-07 12:50:36 +01:00
ripgrep
] ++ cfg.additionalPackages);
2021-02-20 14:41:44 +01:00
}