home: packages: add option for additional packages
This commit is contained in:
parent
ddffa1f247
commit
0a8effa09f
|
@ -3,11 +3,21 @@ let
|
||||||
cfg = config.my.home.packages;
|
cfg = config.my.home.packages;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.my.home.packages = with lib.my; {
|
options.my.home.packages = with lib; {
|
||||||
enable = mkDisableOption "user packages";
|
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 [
|
config.home.packages = with pkgs; lib.mkIf cfg.enable ([
|
||||||
# Git related
|
# Git related
|
||||||
gitAndTools.git-absorb
|
gitAndTools.git-absorb
|
||||||
gitAndTools.git-revise
|
gitAndTools.git-revise
|
||||||
|
@ -16,5 +26,5 @@ in
|
||||||
rr
|
rr
|
||||||
# Terminal prettiness
|
# Terminal prettiness
|
||||||
termite.terminfo
|
termite.terminfo
|
||||||
];
|
] ++ cfg.additionalPackages);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue