Converted eza from nixosModule to homeModule

Also included some fixes for issues introduced in last commit.
This commit is contained in:
alejandro-angulo 2024-07-28 21:13:04 -07:00
parent e58196dcc8
commit 2c22aedcf0
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
6 changed files with 26 additions and 34 deletions

View file

@ -0,0 +1,22 @@
{
config,
lib,
namespace,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.${namespace}.tools.eza;
in {
options.${namespace}.tools.eza = {
enable = mkEnableOption "eza";
};
config = mkIf cfg.enable {
programs.eza = {
enable = true;
icons = true;
git = true;
};
};
}

View file

@ -1,14 +1,13 @@
{ {
options,
config, config,
lib, lib,
pkgs,
... ...
}: }: let
with lib; let inherit (lib) mkEnableOption mkIf;
cfg = config.aa.suites.desktop; cfg = config.aa.suites.desktop;
in { in {
options.aa.suites.desktop = with lib.types; { options.aa.suites.desktop = {
enable = mkEnableOption "common desktop configuration"; enable = mkEnableOption "common desktop configuration";
}; };

View file

@ -14,9 +14,7 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
aa = { aa = {
tools = { tools = {
eza.enable = true;
gpg.enable = true; gpg.enable = true;
zsh.enable = true;
}; };
apps = { apps = {

View file

@ -1,22 +0,0 @@
{
config,
lib,
...
}:
with lib; let
cfg = config.aa.tools.eza;
in {
options.aa.tools.eza = with types; {
enable = mkEnableOption "eza";
};
config = mkIf cfg.enable {
aa.home.extraOptions = {
programs.eza = {
enable = true;
icons = true;
git = true;
};
};
};
}

View file

@ -26,8 +26,6 @@
configureClientRouting = true; configureClientRouting = true;
}; };
}; };
tools.zsh.enable = true;
}; };
# Workaround for broken digital ocean image builds # Workaround for broken digital ocean image builds

View file

@ -18,10 +18,7 @@ with lib; {
nix.enable = true; nix.enable = true;
suites.desktop.enable = true; suites.desktop.enable = true;
tools.zsh.enable = true;
tools.eza.enable = true;
apps.neovim.enable = true; apps.neovim.enable = true;
apps.tmux.enable = true;
}; };
users.users.virt = { users.users.virt = {