dotfiles/nix/home-manager/modules/cmdline-utils.nix
Magic_RB d3e46e5413
Complete module rework
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2021-08-19 18:24:36 +02:00

24 lines
452 B
Nix

{ 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
];
};
}