blob: 806ce317b31fbae4a38dff2a52cdec9f7c49921c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{ config, lib, pkgs, ... }:
let cfg = config.my.home.packages;
in {
options.my.home.packages = with lib; {
enable = mkEnableOption "user packages";
additionalPackages = mkOption {
type = with types; listOf package;
default = [ ];
example = literalExample ''
with pkgs; [
pavucontrol
]
'';
};
};
config.home.packages = with pkgs;
lib.mkIf cfg.enable ([ util-linux jq ripgrep ] ++ cfg.additionalPackages);
}
|