forked from c3d2/nix-config
Remove ADC and yggdrasil from hydra
This commit is contained in:
parent
42f2a9b23a
commit
7048992e9a
|
@ -1,36 +0,0 @@
|
||||||
{ config, pkgs, lib, ... }:
|
|
||||||
|
|
||||||
let ncdcPort = 1512;
|
|
||||||
in {
|
|
||||||
services.uhub = {
|
|
||||||
enable = true;
|
|
||||||
enableTLS = false;
|
|
||||||
port = 19061;
|
|
||||||
hubConfig = ''
|
|
||||||
hub_name=c3d2
|
|
||||||
hub_description=<<</>>
|
|
||||||
show_banner_sys_info=0
|
|
||||||
'';
|
|
||||||
plugins.history.enable = true;
|
|
||||||
plugins.welcome = {
|
|
||||||
enable = true;
|
|
||||||
motd = ''
|
|
||||||
______ ______
|
|
||||||
/ / / / / /\ \ \
|
|
||||||
/ / / / / / \ \ \
|
|
||||||
\ \ \ \ / / / / /
|
|
||||||
\_\_\_\/_/ /_/_/
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ ncdcPort config.services.uhub.port ];
|
|
||||||
networking.firewall.allowedUDPPorts = [ ncdcPort ];
|
|
||||||
|
|
||||||
users.users.ncdc = {
|
|
||||||
isNormalUser = true;
|
|
||||||
uid = 1511;
|
|
||||||
openssh.authorizedKeys.keys =
|
|
||||||
config.users.users.root.openssh.authorizedKeys.keys;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -3,32 +3,17 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
<nixpkgs/nixos/modules/profiles/minimal.nix>
|
<nixpkgs/nixos/modules/profiles/minimal.nix>
|
||||||
./adc.nix
|
|
||||||
./hydra.nix
|
./hydra.nix
|
||||||
./cache.nix
|
./cache.nix
|
||||||
# ./flakebert.nix
|
|
||||||
./../../lib/hq.nix
|
./../../lib/hq.nix
|
||||||
./../../lib/yggdrasil.nix
|
|
||||||
./../../lib/tun.nix
|
|
||||||
./../../lib/emery.nix
|
./../../lib/emery.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
services.yggdrasil = {
|
networking.interfaces.eth0.preferTempAddress = false;
|
||||||
configFile = "/var/lib/yggdrasil/keys";
|
|
||||||
config.Peers = [
|
|
||||||
"tcp://[2a03:3b40:fe:ab::1]:46370" # Praha
|
|
||||||
"tcp://ygg.thingylabs.io:443" # Nürnberg
|
|
||||||
"tcp://176.223.130.120:22632" # Wrocław
|
|
||||||
"tcp://[2a05:9403::8b]:7743" # Praha
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
security.pam.enableSSHAgentAuth = true;
|
security.pam.enableSSHAgentAuth = true;
|
||||||
users.users.root.openssh.authorizedKeys.keys = [
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICgL2kRs+cXAcUzOO2Tp+mtMBVuHqMuslQy3LN+HLSP4 emery@nixos"
|
|
||||||
];
|
|
||||||
|
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
programs.mosh.enable = true;
|
programs.mosh.enable = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user