Improved zsh and migrate ssh

This commit is contained in:
2024-07-25 22:34:05 -04:00
parent 1945dbbdda
commit af2c3219ce
7 changed files with 43 additions and 50 deletions

View File

@@ -1,6 +1,7 @@
{
imports = [
./firefox.nix
./ssh.nix
./vscode.nix
./zsh.nix
];

View File

@@ -0,0 +1,23 @@
{ config, lib, ... }:
let
cfg = config.ssh;
agentPath = "~/.1password/agent.sock";
in
{
options = {
ssh.enable = lib.mkEnableOption "enable ssh module";
};
config.programs.ssh = lib.mkIf cfg.enable {
enable = true;
extraConfig = ''
Host *
IdentityAgent ${agentPath}
Host bromine
HostName 192.168.1.200
User mbessette
ForwardAgent yes
'';
};
}

View File

@@ -10,10 +10,13 @@ in
config.programs.zsh = lib.mkIf cfg.enable {
enable = true;
# ohMyZsh.enable = true;
# ohMyZsh.theme = "robbyrussell";
# ohMyZsh.plugins = [
# "git"
# ];
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
oh-my-zsh.enable = true;
oh-my-zsh.theme = "robbyrussell";
oh-my-zsh.plugins = [
"git"
"npm"
];
};
}