added tiny irc client.
This involved setting up the pass password manager to manage secrets, which in turn required setting up gpg, which needed syncthing to sync keys.
This commit is contained in:
		
							parent
							
								
									3e833842e1
								
							
						
					
					
						commit
						57252af57b
					
				
					 7 changed files with 73 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -46,6 +46,9 @@
 | 
			
		|||
    ./voice.nix
 | 
			
		||||
    ./nvim
 | 
			
		||||
    ./zellij
 | 
			
		||||
    ./tiny-irc.nix
 | 
			
		||||
    ./pass.nix
 | 
			
		||||
    ./gpg.nix
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  programs = {
 | 
			
		||||
| 
						 | 
				
			
			@ -62,5 +65,5 @@
 | 
			
		|||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  services.ssh-agent.enable = true;
 | 
			
		||||
  services.syncthing.enable = true;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										13
									
								
								modules/home-manager/terminal/gpg.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								modules/home-manager/terminal/gpg.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,13 @@
 | 
			
		|||
{
 | 
			
		||||
  config,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  lib,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  programs.gpg.enable = true;
 | 
			
		||||
 | 
			
		||||
  services.gpg-agent={
 | 
			
		||||
    enable=true;
 | 
			
		||||
    enableSshSupport = true;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -22,6 +22,7 @@
 | 
			
		|||
    enableNushellIntegration = true;
 | 
			
		||||
  };
 | 
			
		||||
  programs.direnv.enableNushellIntegration = true;
 | 
			
		||||
  services.gpg-agent.enableNushellIntegration = true;
 | 
			
		||||
 | 
			
		||||
  services.pueue = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -21,7 +21,8 @@ $env.EDITOR = nvim
 | 
			
		|||
$env.VISUAL = nvim
 | 
			
		||||
$env.PIPENV_VENV_IN_PROJECT = 1
 | 
			
		||||
$env.POETRY_VIRTUALENVS_IN_PROJECT = 1
 | 
			
		||||
$env.SSH_AUTH_SOCK = $"($env.XDG_RUNTIME_DIR)/ssh-agent"
 | 
			
		||||
$env.XDG_DATA_HOME = ( $env.HOME | path join ".local" "share" )
 | 
			
		||||
$env.PASSWORD_STORE_DIR = ($env.XDG_DATA_HOME | path join "password-store")
 | 
			
		||||
 | 
			
		||||
$env.NU_LIB_DIRS = [
 | 
			
		||||
    ...
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										14
									
								
								modules/home-manager/terminal/pass.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								modules/home-manager/terminal/pass.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,14 @@
 | 
			
		|||
{
 | 
			
		||||
  config,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  lib,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  programs.password-store = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  home.packages = with pkgs; [
 | 
			
		||||
    ripasso-cursive
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										38
									
								
								modules/home-manager/terminal/tiny-irc.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								modules/home-manager/terminal/tiny-irc.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,38 @@
 | 
			
		|||
{
 | 
			
		||||
  config,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  lib,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  programs.tiny = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    settings = {
 | 
			
		||||
      servers = [
 | 
			
		||||
        {
 | 
			
		||||
          addr = "irc.libera.chat";
 | 
			
		||||
          port = 6697;
 | 
			
		||||
          tls = true;
 | 
			
		||||
          realname = "Gabe Venberg";
 | 
			
		||||
          nicks = ["toric"];
 | 
			
		||||
          join = [
 | 
			
		||||
            "#libera"
 | 
			
		||||
            "#linux"
 | 
			
		||||
            "#lobsters"
 | 
			
		||||
            "#nixos"
 | 
			
		||||
          ];
 | 
			
		||||
          sasl = {
 | 
			
		||||
            username="toric";
 | 
			
		||||
            password={
 | 
			
		||||
              command= "pass show libera";
 | 
			
		||||
            };
 | 
			
		||||
          };
 | 
			
		||||
        }
 | 
			
		||||
      ];
 | 
			
		||||
      defaults = {
 | 
			
		||||
        nicks = ["toric"];
 | 
			
		||||
        realname = "Gabe Venberg";
 | 
			
		||||
        tls = true;
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -10,6 +10,7 @@
 | 
			
		|||
  programs.carapace.enableZshIntegration = true;
 | 
			
		||||
  programs.direnv.enableZshIntegration = true;
 | 
			
		||||
  programs.kitty.shellIntegration.enableZshIntegration = true;
 | 
			
		||||
  services.gpg-agent.enableZshIntegration = true;
 | 
			
		||||
  programs.zsh = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    enableCompletion = true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue