Improved zsh and migrate ssh
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{
|
||||
imports = [
|
||||
./firefox.nix
|
||||
./ssh.nix
|
||||
./vscode.nix
|
||||
./zsh.nix
|
||||
];
|
||||
|
||||
23
home-manager-modules/ssh.nix
Normal file
23
home-manager-modules/ssh.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -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"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user