nix-config/home/packages/default.nix
Bruno BELANYI 6d1d0c9488
All checks were successful
continuous-integration/drone/push Build is passing
home: packages: add 'mosh'
2022-02-07 15:00:52 +01:00

27 lines
510 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 ([
file
mosh
rr
termite.terminfo
] ++ cfg.additionalPackages);
}