Compare commits
2 commits
630d511f9f
...
7bd7c0a44f
| Author | SHA1 | Date | |
|---|---|---|---|
| 7bd7c0a44f | |||
| 3227363b37 |
2 changed files with 22 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
{config, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
./alacritty.nix
|
./alacritty.nix
|
||||||
./bat.nix
|
./bat.nix
|
||||||
|
|
@ -25,7 +25,10 @@
|
||||||
|
|
||||||
home.username = "alarsyo";
|
home.username = "alarsyo";
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = let
|
||||||
|
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,10 +19,23 @@ in {
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
matchBlocks = {
|
matchBlocks = let
|
||||||
boreal = {hostname = "boreal.alarsyo.net";};
|
addGPGAgentForwarding = hostConf:
|
||||||
poseidon = {hostname = "poseidon.alarsyo.net";};
|
{
|
||||||
pi = {
|
remoteForwards = [
|
||||||
|
{
|
||||||
|
# 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