WIP: Switch to NixOS #5
2 changed files with 60 additions and 0 deletions
1
gpg.nix
1
gpg.nix
|
@ -6,6 +6,7 @@
|
||||||
gnupg.agent = {
|
gnupg.agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
|
enableExtraSocket = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -3,18 +3,77 @@
|
||||||
{
|
{
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
matchBlocks = {
|
matchBlocks = {
|
||||||
|
|
||||||
|
# Server
|
||||||
moria = {
|
moria = {
|
||||||
hostname = "korhonen.cc";
|
hostname = "korhonen.cc";
|
||||||
user = "balrog";
|
user = "balrog";
|
||||||
port = 221;
|
port = 221;
|
||||||
|
|
||||||
|
remoteForwards = [
|
||||||
|
{
|
||||||
|
bind.address = "/run/user/1000/gnupg/S.gpg-agent.ssh";
|
||||||
|
host.address = "/run/user/1000/gnupg/S.gpg-agent.ssh";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
bind.address = "/run/user/1000/gnupg/S.gpg-agent";
|
||||||
|
host.address = "/run/user/1000/gnupg/S.gpg-agent.extra";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
extraOptions = {
|
||||||
|
StreamLocalBindUnlink = "yes";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Server LUKS unlock
|
||||||
|
moria-unlock = {
|
||||||
|
hostname = "korhonen.cc";
|
||||||
|
user = "root";
|
||||||
|
port = 221;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Main OpenWRT router
|
||||||
|
beleriand = {
|
||||||
|
hostname = "beleriand.korhonen.lan";
|
||||||
|
user = "root";
|
||||||
|
};
|
||||||
|
|
||||||
|
# CoreELEC box
|
||||||
|
rivendell = {
|
||||||
|
hostname = "rivendell.korhonen.lan";
|
||||||
|
user = "root";
|
||||||
|
};
|
||||||
|
|
||||||
|
# OpenWRT AP/travel router
|
||||||
|
esgaroth = {
|
||||||
|
hostname = "esgaroth.korhonen.lan";
|
||||||
|
user = "root";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Self hosted forgejo
|
||||||
forgejo = {
|
forgejo = {
|
||||||
hostname = "git.korhonen.cc";
|
hostname = "git.korhonen.cc";
|
||||||
user = "git";
|
user = "git";
|
||||||
port = 2882;
|
port = 2882;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
github = {
|
||||||
|
hostname = "github.com";
|
||||||
|
user = "git";
|
||||||
|
};
|
||||||
|
|
||||||
|
gitlab = {
|
||||||
|
hostname = "gitlab.com";
|
||||||
|
user = "git";
|
||||||
|
};
|
||||||
|
|
||||||
|
aur = {
|
||||||
|
hostname = "aur.archlinux.org";
|
||||||
|
user = "aur";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue