home: packages: make it enable-able

This commit is contained in:
Bruno BELANYI 2021-03-13 00:02:12 +00:00
parent 405a1f3afe
commit 37038369ff

View file

@ -1,6 +1,13 @@
{ pkgs, ... }: { config, lib, pkgs, ... }:
let
cfg = config.my.home.packages;
in
{ {
home.packages = with pkgs; [ options.my.home.packages = with lib.my; {
enable = mkDisableOption "user packages";
};
config.home.packages = with pkgs; lib.mkIf cfg.enable [
# Git related # Git related
gitAndTools.git-absorb gitAndTools.git-absorb
gitAndTools.git-revise gitAndTools.git-revise