Formatting

This commit is contained in:
Nox Sluijtman 2025-04-18 09:37:57 +02:00
parent ae65065d5c
commit 3ca8c5e218
Signed by: Egg
SSH key fingerprint: SHA256:2sG9X3C7Xvq2svGumz1/k7cm8l4G9+qAtAeugqB4J9M
9 changed files with 156 additions and 108 deletions

View file

@ -1,7 +1,14 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
with lib;
let cfg = config.voidconf.services;
in {
let
cfg = config.voidconf.services;
in
{
options.voidconf.services = {
flatpak = {
@ -26,7 +33,7 @@ in {
};
config = {
# flatpak
# flatpak
xdg.portal = mkIf cfg.flatpak.enable {
enable = true;
@ -35,66 +42,69 @@ in {
config.common.default = "*";
};
# ssh
# ssh agent
programs.ssh = mkIf cfg.ssh.enable {
startAgent = true;
};
programs.ssh = mkIf cfg.ssh.enable {
startAgent = true;
};
services = {
services = {
# flatpak
# flatpak
flatpak.enable = cfg.flatpak.enable;
flatpak.enable = cfg.flatpak.enable;
# yggdrasil
# yggdrasil
yggdrasil = mkIf cfg.yggdrasil.enable {
enable = true;
persistentKeys = cfg.yggdrasil.persistentKeys;
settings = {
Peers = [
"tls://109.107.173.235:9111"
"tls://94.103.82.150:8080"
"tcp://vpn.itrus.su:7991"
"tls://45.147.198.155:6010"
"tcp://ygg-nl.incognet.io:8883"
"tls://ygg-nl.incognet.io:8884"
"tls://23.137.249.65:443"
"tls://aaoth.xyz:25565"
"tcp://aaoth.xyz:7777"
"tls://23.137.251.45:5222"
"tls://x-ams-0.sergeysedoy97.ru:65535"
"tls://s-ams-0.sergeysedoy97.ru:65535"
"tls://89.22.237.91:65535"
"tls://[2a0d:8480:1:f9::]:65535"
"tls://x-ams-1.sergeysedoy97.ru:65535"
"tls://s-ams-1.sergeysedoy97.ru:65535"
"tls://79.137.194.94:65535"
];
};
};
openssh = mkIf cfg.ssh.enable {
enable = true;
settings = {
PasswordAuthentication = cfg.ssh.passwordLogin;
};
yggdrasil = mkIf cfg.yggdrasil.enable {
enable = true;
persistentKeys = cfg.yggdrasil.persistentKeys;
settings = {
Peers = [
"tls://109.107.173.235:9111"
"tls://94.103.82.150:8080"
"tcp://vpn.itrus.su:7991"
"tls://45.147.198.155:6010"
"tcp://ygg-nl.incognet.io:8883"
"tls://ygg-nl.incognet.io:8884"
"tls://23.137.249.65:443"
"tls://aaoth.xyz:25565"
"tcp://aaoth.xyz:7777"
"tls://23.137.251.45:5222"
"tls://x-ams-0.sergeysedoy97.ru:65535"
"tls://s-ams-0.sergeysedoy97.ru:65535"
"tls://89.22.237.91:65535"
"tls://[2a0d:8480:1:f9::]:65535"
"tls://x-ams-1.sergeysedoy97.ru:65535"
"tls://s-ams-1.sergeysedoy97.ru:65535"
"tls://79.137.194.94:65535"
];
};
};
# i2p container
# ssh daemon
openssh = mkIf cfg.ssh.enable {
enable = true;
settings = {
PasswordAuthentication = cfg.ssh.passwordLogin;
};
};
};
# i2p container
containers.i2pd-container = mkIf cfg.i2p.enable {
autoStart = cfg.i2p.autoStart;
config = {
system.stateVersion = "23.11"; # Did you read the comment?
networking.firewall.allowedTCPPorts = [
7656
7070
4447
4444
];
networking.firewall.allowedTCPPorts = [
7656
7070
4447
4444
];
services.i2pd = {
enable = true;