Rename and refactor Darwin-specific modules

Renamed several modules to better align with Darwin-specific configurations. Refactored configuration for Alacritty and removed it from system packages where not needed. Introduced Homebrew settings and cleaned up redundant entries in multiple Nix files.
This commit is contained in:
Harald Hoyer 2024-11-25 14:22:52 +01:00
parent f5670d2c0e
commit cbe03d1060
8 changed files with 63 additions and 58 deletions

View file

@ -1,29 +0,0 @@
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.metacfg.tools.alacritty;
in
{
options.metacfg.tools.alacritty = {
enable = mkEnableOption "alacritty";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
alacritty
(pkgs.nerdfonts.override {
fonts = [
"FiraCode"
"DroidSansMono"
"JetBrainsMono"
];
})
];
};
}

View file

@ -1,25 +0,0 @@
{
options,
config,
lib,
pkgs,
...
}:
with lib;
with lib.metacfg;
let
cfg = config.metacfg.tools.direnv;
in
{
options.metacfg.tools.direnv = with types; {
enable = mkBoolOpt false "Whether or not to enable direnv.";
};
config = mkIf cfg.enable {
programs.direnv = {
enable = true;
nix-direnv = enabled;
};
};
}