Begun yubikey integration
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
./nvf.nix
|
||||
./packages.nix
|
||||
./plasma.nix
|
||||
./ssh.nix
|
||||
./stylix.nix
|
||||
./vscode.nix
|
||||
./zsh.nix
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
discord
|
||||
sqlitebrowser
|
||||
drawio
|
||||
bitwarden-desktop
|
||||
|
||||
# Libre Office
|
||||
libreoffice-qt
|
||||
|
||||
30
modules/home/ssh.nix
Normal file
30
modules/home/ssh.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
enableDefaultConfig = false;
|
||||
matchBlocks = {
|
||||
"*" = {
|
||||
addKeysToAgent = "yes";
|
||||
identityFile = [ "~/.ssh/id_ed25519_sk_rk" ];
|
||||
};
|
||||
"stu" = {
|
||||
hostname = "stu.cs.jmu.edu";
|
||||
user = "tamassno";
|
||||
localForwards = [
|
||||
{
|
||||
bind.port = 5432;
|
||||
host = {
|
||||
address = "data.cs.jmu.edu";
|
||||
port = 5432;
|
||||
};
|
||||
}
|
||||
];
|
||||
serverAliveCountMax = 5;
|
||||
serverAliveInterval = 60;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -79,8 +79,8 @@
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
sessionVariables = {
|
||||
SSH_AUTH_SOCK = "/home/eclypse/.bitwarden-ssh-agent.sock";
|
||||
shellAliases = {
|
||||
stu = "ssh tamassno@stu.cs.jmu.edu";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -2,7 +2,16 @@
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs = {
|
||||
yubikey-manager.enable = true;
|
||||
yubikey-touch-detector.enable = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
yubikey-agent.enable = true;
|
||||
};
|
||||
|
||||
security = {
|
||||
rtkit.enable = true;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
};
|
||||
programs.home-manager.enable = true;
|
||||
};
|
||||
|
||||
backupFileExtension = "backup";
|
||||
};
|
||||
|
||||
users.mutableUsers = false;
|
||||
|
||||
Reference in New Issue
Block a user