refactor shell config

This commit is contained in:
ulic-youthlic 2025-05-03 20:40:22 +08:00
parent aa062722d5
commit 385bfedd8f
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
9 changed files with 139 additions and 78 deletions

View file

@ -0,0 +1,18 @@
{
config,
lib,
...
}: let
cfg = config.youthlic.programs.eza;
in {
options = {
youthlic.programs.eza = {
enable = lib.mkEnableOption "eza";
};
};
config = {
programs.eza = lib.mkIf cfg.enable {
enable = true;
};
};
}