nix-config/home/packages/default.nix

28 lines
522 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 ([
2022-03-07 12:57:16 +01:00
fd
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
] ++ cfg.additionalPackages);
2021-02-20 14:41:44 +01:00
}