Bruno BELANYI
65a8f7c481
Consolidating all modules under the same path, to clear out the top-level directory.
27 lines
501 B
Nix
27 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 ([
|
|
fd
|
|
file
|
|
mosh
|
|
ripgrep
|
|
] ++ cfg.additionalPackages);
|
|
}
|