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
|
|
|
{
|
2021-05-07 17:32:26 +02: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
|
|
|
};
|
|
|
|
|
2021-05-07 17:32:26 +02:00
|
|
|
config.home.packages = with pkgs; lib.mkIf cfg.enable ([
|
2022-03-07 12:57:16 +01:00
|
|
|
fd
|
2021-05-07 19:05:44 +02:00
|
|
|
file
|
2022-02-07 15:00:52 +01:00
|
|
|
mosh
|
2022-03-07 12:50:36 +01:00
|
|
|
ripgrep
|
2021-03-07 16:43:14 +01:00
|
|
|
termite.terminfo
|
2021-05-07 17:32:26 +02:00
|
|
|
] ++ cfg.additionalPackages);
|
2021-02-20 14:41:44 +01:00
|
|
|
}
|