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
				
			
		
							
								
								
									
										22
									
								
								modules/home/tools/eza/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								modules/home/tools/eza/default.nix
									
										
									
									
									
										Normal 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;
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -26,8 +26,6 @@
 | 
			
		|||
        configureClientRouting = true;
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    tools.zsh.enable = true;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  # Workaround for broken digital ocean image builds
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -18,10 +18,7 @@ with lib; {
 | 
			
		|||
    nix.enable = true;
 | 
			
		||||
 | 
			
		||||
    suites.desktop.enable = true;
 | 
			
		||||
    tools.zsh.enable = true;
 | 
			
		||||
    tools.eza.enable = true;
 | 
			
		||||
    apps.neovim.enable = true;
 | 
			
		||||
    apps.tmux.enable = true;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  users.users.virt = {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue