dotfiles/nix/home-manager/modules/cmdline-utils.nix

24 lines
452 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.magic_rb.packageCollections.cmdline;
in
{
options.magic_rb.packageCollections.cmdline = {
enable = mkEnableOption
''
A package collection containing command line programs, specifically zip, unzip, unrar (unfree), git, and htop.
'';
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
zip
unzip
unrar
git
htop
];
};
}