WIP: Switch to NixOS #5

Draft
FunctionalHacker wants to merge 1349 commits from nix into main
2 changed files with 60 additions and 0 deletions
Showing only changes of commit ae5be4a644 - Show all commits

View file

@ -6,6 +6,7 @@
gnupg.agent = {
enable = true;
enableSSHSupport = true;
enableExtraSocket = true;
};
};

View file

@ -3,18 +3,77 @@
{
programs.ssh = {
enable = true;
matchBlocks = {
# Server
moria = {
hostname = "korhonen.cc";
user = "balrog";
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 = {
hostname = "git.korhonen.cc";
user = "git";
port = 2882;
};
github = {
hostname = "github.com";
user = "git";
};
gitlab = {
hostname = "gitlab.com";
user = "git";
};
aur = {
hostname = "aur.archlinux.org";
user = "aur";
};
};
};
}