diff options
| author | Leonardo <noreply@leoflo.me> | 2026-02-28 16:27:59 +0100 |
|---|---|---|
| committer | Leonardo <noreply@leoflo.me> | 2026-02-28 19:02:07 +0100 |
| commit | bb11479130b0988e93408aa917cfc872d427d95f (patch) | |
| tree | 58d37004d9529f927fcab0a5672bc6697d9b3c24 /components/services | |
| parent | 1507e4e369bd73b85f191fef20a7509283a418aa (diff) | |
| download | nixos-bb11479130b0988e93408aa917cfc872d427d95f.tar.gz nixos-bb11479130b0988e93408aa917cfc872d427d95f.zip | |
nuovo layout
Diffstat (limited to 'components/services')
| -rw-r--r-- | components/services/i2pd.nix | 19 | ||||
| -rw-r--r-- | components/services/openssh.nix | 15 |
2 files changed, 34 insertions, 0 deletions
diff --git a/components/services/i2pd.nix b/components/services/i2pd.nix new file mode 100644 index 0000000..8477dc3 --- /dev/null +++ b/components/services/i2pd.nix @@ -0,0 +1,19 @@ +{lib, config, ...}: { + options.i2pd.enable = lib.mkEnableOption "An I2P router"; + + config = lib.mkIf config.i2pd.enable { + services.i2pd = { + enable = true; + address = "127.0.0.1"; + port = 4444; + + proto = { + http.enable = true; + httpProxy.enable = true; + socksProxy.enable = true; + sam.enable = true; + i2cp.enable = true; + }; + }; + }; +} diff --git a/components/services/openssh.nix b/components/services/openssh.nix new file mode 100644 index 0000000..66a6499 --- /dev/null +++ b/components/services/openssh.nix @@ -0,0 +1,15 @@ +{lib, config, ...}: { + options.openssh.enable = lib.mkEnableOption "OpenSSH server"; + + config = lib.mkIf config.openssh.enable { + services.openssh = { + enable = true; + + settings = { + PermitRootLogin = "no"; + PasswordAuthentication = false; + PrintMotd = false; + }; + }; + }; +} |
