home: packages: make it enable-able
This commit is contained in:
parent
405a1f3afe
commit
37038369ff
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue