added 'roles', sets of installed programs.
This commit is contained in:
		
							parent
							
								
									f180fc20f1
								
							
						
					
					
						commit
						43a47321e4
					
				
					 7 changed files with 50 additions and 22 deletions
				
			
		| 
						 | 
				
			
			@ -87,7 +87,7 @@ inputs.nixpkgs.lib.nixosSystem {
 | 
			
		|||
          };
 | 
			
		||||
        };
 | 
			
		||||
        imports = [
 | 
			
		||||
          ../../modules/home-manager/terminal
 | 
			
		||||
          ../../roles/terminal.nix
 | 
			
		||||
          ../../modules/home-manager/nvim
 | 
			
		||||
          ../../modules/home-manager/common.nix
 | 
			
		||||
          ../../modules/home-manager/email.nix
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -34,7 +34,7 @@ inputs.home-manager.lib.homeManagerConfiguration {
 | 
			
		|||
      home.username = "gabe";
 | 
			
		||||
      home.homeDirectory = /home/gabe;
 | 
			
		||||
      imports = [
 | 
			
		||||
        ../modules/home-manager/terminal
 | 
			
		||||
        ../roles/terminal.nix
 | 
			
		||||
        ../modules/home-manager/nvim
 | 
			
		||||
        ../modules/home-manager/common.nix
 | 
			
		||||
        ../modules/home-manager/syncthing.nix
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -37,7 +37,7 @@ inputs.home-manager.lib.homeManagerConfiguration {
 | 
			
		|||
      home.username = "gabe";
 | 
			
		||||
      home.homeDirectory = /home/gabe;
 | 
			
		||||
      imports = [
 | 
			
		||||
        ../modules/home-manager/terminal
 | 
			
		||||
        ../roles/terminal.nix
 | 
			
		||||
        ../modules/home-manager/nvim
 | 
			
		||||
        ../modules/home-manager/common.nix
 | 
			
		||||
        ../modules/home-manager/syncthing.nix
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -88,7 +88,7 @@ inputs.nixpkgs.lib.nixosSystem {
 | 
			
		|||
          };
 | 
			
		||||
        };
 | 
			
		||||
        imports = [
 | 
			
		||||
          ../../modules/home-manager/terminal
 | 
			
		||||
          ../../roles/terminal.nix
 | 
			
		||||
          ../../modules/home-manager/nvim
 | 
			
		||||
          ../../modules/home-manager/common.nix
 | 
			
		||||
          inputs.nixvim.homeManagerModules.nixvim
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -30,7 +30,7 @@
 | 
			
		|||
        #select first item when you press tab the first time.
 | 
			
		||||
        setopt MENU_COMPLETE
 | 
			
		||||
      ''
 | 
			
		||||
      (lib.mkif (!config.programs.starship.enable) ''
 | 
			
		||||
      (lib.mkIf (!config.programs.starship.enable) ''
 | 
			
		||||
        autoload -U promptinit
 | 
			
		||||
        promptinit
 | 
			
		||||
        autoload -U colors
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,14 +4,18 @@
 | 
			
		|||
  lib,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  imports = [
 | 
			
		||||
    ../modules/home-manager/terminal/zsh.nix
 | 
			
		||||
    ../modules/home-manager/terminal/git.nix
 | 
			
		||||
    ../modules/home-manager/terminal/zellij
 | 
			
		||||
    ../modules/home-manager/terminal/ssh-agent.nix
 | 
			
		||||
    ../modules/home-manager/terminal/direnv.nix
 | 
			
		||||
  ];
 | 
			
		||||
  home.packages = with pkgs; [
 | 
			
		||||
    sshfs
 | 
			
		||||
    just
 | 
			
		||||
    fd
 | 
			
		||||
    sd
 | 
			
		||||
    tre-command
 | 
			
		||||
    diskonaut
 | 
			
		||||
    hyperfine
 | 
			
		||||
    curl
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -37,25 +41,11 @@
 | 
			
		|||
    sshmnt = "sshfs -o idmap=user,compression=no,reconnect,follow_symlinks,dir_cache=yes,ServerAliveInterval=15";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  imports = [
 | 
			
		||||
    ./nushell
 | 
			
		||||
    ./zsh.nix
 | 
			
		||||
    ./git.nix
 | 
			
		||||
    ./starship.nix
 | 
			
		||||
    ./voice.nix
 | 
			
		||||
    ./zellij
 | 
			
		||||
    ./tiny-irc.nix
 | 
			
		||||
    ./ssh-agent.nix
 | 
			
		||||
    ./direnv
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  programs = {
 | 
			
		||||
    yazi.enable = true;
 | 
			
		||||
    zoxide.enable = true;
 | 
			
		||||
    fzf.enable = true;
 | 
			
		||||
    ripgrep.enable = true;
 | 
			
		||||
    bat.enable = true;
 | 
			
		||||
    tealdeer.enable = true;
 | 
			
		||||
    btop.enable = true;
 | 
			
		||||
    man.enable = true;
 | 
			
		||||
  };
 | 
			
		||||
							
								
								
									
										38
									
								
								roles/terminal.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								roles/terminal.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,38 @@
 | 
			
		|||
{
 | 
			
		||||
  config,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  lib,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  imports = [
 | 
			
		||||
    ./minimal-terminal.nix
 | 
			
		||||
    ../modules/home-manager/terminal/nushell
 | 
			
		||||
    ../modules/home-manager/terminal/starship.nix
 | 
			
		||||
    ../modules/home-manager/terminal/voice.nix
 | 
			
		||||
    ../modules/home-manager/terminal/tiny-irc.nix
 | 
			
		||||
  ];
 | 
			
		||||
  home.packages = with pkgs; [
 | 
			
		||||
    tre-command
 | 
			
		||||
    diskonaut
 | 
			
		||||
    hyperfine
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  # Home Manager is pretty good at managing dotfiles. The primary way to manage
 | 
			
		||||
  # plain files is through 'home.file'.
 | 
			
		||||
  home.file = {
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  home.sessionVariables = {
 | 
			
		||||
    PIPENV_VENV_IN_PROJECT = 1;
 | 
			
		||||
    POETRY_VIRTUALENVS_IN_PROJECT = 1;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  home.shellAliases = {
 | 
			
		||||
    # doc2pdf = "loffice --convert-to-pdf --headless *.docx";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  programs = {
 | 
			
		||||
    zoxide.enable = true;
 | 
			
		||||
    tealdeer.enable = true;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue