Converted eza from nixosModule to homeModule
Also included some fixes for issues introduced in last commit.
This commit is contained in:
parent
e58196dcc8
commit
2c22aedcf0
6 changed files with 26 additions and 34 deletions
|
@ -1,14 +1,13 @@
|
|||
{
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
|
||||
cfg = config.aa.suites.desktop;
|
||||
in {
|
||||
options.aa.suites.desktop = with lib.types; {
|
||||
options.aa.suites.desktop = {
|
||||
enable = mkEnableOption "common desktop configuration";
|
||||
};
|
||||
|
||||
|
|
|
@ -14,9 +14,7 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
aa = {
|
||||
tools = {
|
||||
eza.enable = true;
|
||||
gpg.enable = true;
|
||||
zsh.enable = true;
|
||||
};
|
||||
|
||||
apps = {
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue