home: extract dircolors configuration

This commit is contained in:
Bruno BELANYI 2023-04-26 20:49:21 +01:00
parent 1d7b9b99db
commit 0ab56888bd
3 changed files with 16 additions and 4 deletions

View file

@ -0,0 +1,15 @@
{ config, lib, ... }:
let
cfg = config.my.home.dircolors;
in
{
options.my.home.dircolors = with lib; {
enable = my.mkDisableOption "dircolors configuration";
};
config = lib.mkIf cfg.enable {
programs.dircolors = {
enable = true;
};
};
}