home: extract dircolors configuration
This commit is contained in:
parent
1d7b9b99db
commit
0ab56888bd
|
@ -4,6 +4,7 @@
|
|||
./bat
|
||||
./bluetooth
|
||||
./comma
|
||||
./dircolors
|
||||
./direnv
|
||||
./discord
|
||||
./documentation
|
||||
|
|
15
home/dircolors/default.nix
Normal file
15
home/dircolors/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -104,9 +104,5 @@ in
|
|||
# Enable VTE integration
|
||||
enableVteIntegration = true;
|
||||
};
|
||||
|
||||
programs.dircolors = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue