Compare commits
No commits in common. "7bd7c0a44fd93bd0cbede4f17a6cf9eb984886a7" and "630d511f9f7fc829e8e55a368143051c1e0f2f11" have entirely different histories.
7bd7c0a44f
...
630d511f9f
2 changed files with 6 additions and 22 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{config, ...}: {
|
{...}: {
|
||||||
imports = [
|
imports = [
|
||||||
./alacritty.nix
|
./alacritty.nix
|
||||||
./bat.nix
|
./bat.nix
|
||||||
|
|
@ -25,10 +25,7 @@
|
||||||
|
|
||||||
home.username = "alarsyo";
|
home.username = "alarsyo";
|
||||||
|
|
||||||
home.sessionVariables = let
|
home.sessionVariables = {
|
||||||
gpgPackage = config.programs.gpg.package;
|
|
||||||
in {
|
|
||||||
BROWSER = "firefox";
|
BROWSER = "firefox";
|
||||||
SSH_AUTH_SOCK = "$(${gpgPackage}/bin/gpgconf --list-dirs agent-ssh-socket)";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
21
home/ssh.nix
21
home/ssh.nix
|
|
@ -19,23 +19,10 @@ in {
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
matchBlocks = let
|
matchBlocks = {
|
||||||
addGPGAgentForwarding = hostConf:
|
boreal = {hostname = "boreal.alarsyo.net";};
|
||||||
{
|
poseidon = {hostname = "poseidon.alarsyo.net";};
|
||||||
remoteForwards = [
|
pi = {
|
||||||
{
|
|
||||||
# shhhh this is a path but it works
|
|
||||||
bind.address = "/run/user/1000/gnupg/S.gpg-agent.ssh";
|
|
||||||
host.address = "/run/user/1000/gnupg/S.gpg-agent.ssh";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
// hostConf;
|
|
||||||
in {
|
|
||||||
boreal = addGPGAgentForwarding {hostname = "boreal.alarsyo.net";};
|
|
||||||
hades = addGPGAgentForwarding {hostname = "hades.alarsyo.net";};
|
|
||||||
poseidon = addGPGAgentForwarding {hostname = "poseidon.alarsyo.net";};
|
|
||||||
pi = addGPGAgentForwarding {
|
|
||||||
hostname = "pi.alarsyo.net";
|
hostname = "pi.alarsyo.net";
|
||||||
user = "pi";
|
user = "pi";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue