refactor(flake-parts): initial flake-parts configuration
This commit is contained in:
		
							parent
							
								
									8f67be9e68
								
							
						
					
					
						commit
						5603001d65
					
				
					 230 changed files with 380 additions and 717 deletions
				
			
		| 
						 | 
				
			
			@ -1,77 +0,0 @@
 | 
			
		|||
{ pkgs, lib, config, ... }:
 | 
			
		||||
let
 | 
			
		||||
  cfg = config.homeModules.console.utility.tools;
 | 
			
		||||
in
 | 
			
		||||
{
 | 
			
		||||
  config = lib.mkIf cfg.enable {
 | 
			
		||||
    home.packages = with pkgs; [
 | 
			
		||||
      bc # Calculator
 | 
			
		||||
    
 | 
			
		||||
      # file utility
 | 
			
		||||
      duf
 | 
			
		||||
      du-dust
 | 
			
		||||
      fd
 | 
			
		||||
      ripgrep
 | 
			
		||||
 | 
			
		||||
      # archive
 | 
			
		||||
      zip
 | 
			
		||||
      unzip
 | 
			
		||||
      unrar
 | 
			
		||||
    
 | 
			
		||||
      # file transfer
 | 
			
		||||
      wget
 | 
			
		||||
      httpie # Better curl
 | 
			
		||||
 | 
			
		||||
      # resource manager
 | 
			
		||||
      powertop
 | 
			
		||||
 | 
			
		||||
      #shell scripting
 | 
			
		||||
      gum
 | 
			
		||||
      # audio ctrl
 | 
			
		||||
      pamixer
 | 
			
		||||
          
 | 
			
		||||
      diffsitter # Better diff
 | 
			
		||||
      jq # JSON pretty printer and manipulator
 | 
			
		||||
      comma # Install and run with ","
 | 
			
		||||
      tldr # Community maintained help pages
 | 
			
		||||
      progress
 | 
			
		||||
      killall
 | 
			
		||||
      acpi
 | 
			
		||||
 | 
			
		||||
      # Notifications
 | 
			
		||||
      libnotify
 | 
			
		||||
 | 
			
		||||
      # Nix tooling
 | 
			
		||||
      alejandra
 | 
			
		||||
    ];
 | 
			
		||||
 | 
			
		||||
    programs = {
 | 
			
		||||
      btop.enable = true;
 | 
			
		||||
      eza.enable = true;
 | 
			
		||||
      bat = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
        config = {
 | 
			
		||||
          theme = "base16";
 | 
			
		||||
          pager = "less -FR";
 | 
			
		||||
        };
 | 
			
		||||
      };
 | 
			
		||||
      direnv = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
        nix-direnv.enable = true;
 | 
			
		||||
      };
 | 
			
		||||
      fzf = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
        enableFishIntegration = lib.mkIf config.homeModules.console.shell.fish.enable true;
 | 
			
		||||
        defaultCommand = "rg --files --hidden";
 | 
			
		||||
        changeDirWidgetOptions = [
 | 
			
		||||
          "--preview 'eza --icons -L 3 -T --color always {} | head -200'"
 | 
			
		||||
          "--exact"
 | 
			
		||||
        ];
 | 
			
		||||
        fileWidgetCommand = "rg --files";
 | 
			
		||||
        fileWidgetOptions = [
 | 
			
		||||
          "--preview 'bat --color=always {}'"
 | 
			
		||||
        ];
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue