nix-config/home/packages.nix

30 lines
595 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 ([
ambroisie.comma
file
2021-02-20 15:04:53 +01:00
gitAndTools.git-absorb
gitAndTools.git-revise
2021-02-20 14:41:44 +01:00
gitAndTools.tig
rr
2021-03-07 16:43:14 +01:00
termite.terminfo
] ++ cfg.additionalPackages);
2021-02-20 14:41:44 +01:00
}