-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
055ecb4
commit 621d75d
Showing
3 changed files
with
48 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,11 +10,20 @@ | |
[ | ||
# Include the results of the hardware scan. | ||
./hardware-configuration.nix | ||
./wg0.nix | ||
]; | ||
services.qemuGuest.enable = true; | ||
# top level option name | ||
# by using awallau.* for all our modules, we won't have any conflicts with other modules | ||
awallau = { | ||
# enable freshrss | ||
freshrss = { | ||
enable = true; | ||
defaultUser = "awallau"; | ||
passwordFile = "/var/src/secret/freshrss"; | ||
passwordFilePostgres = "/var/src/secret/freshrss-postgres"; | ||
domain = "rss.alexanderwallau.de"; | ||
}; | ||
#enable gitea | ||
gitea.enable = true; | ||
# enable hedgedoc | ||
|
@@ -27,14 +36,23 @@ | |
enable = true; | ||
profile = "server"; | ||
}; | ||
nginx.enable = true; | ||
# set up general nix stuff | ||
nix-common.enable = true; | ||
# set up language and timezone | ||
locales.enable = true; | ||
# set up paperless | ||
paperless.enable = true; | ||
# set up postgresql | ||
postgres.enable = true; | ||
# set up ssh server | ||
openssh.enable = true; | ||
# recepies | ||
tandoor = { | ||
enable = true; | ||
domain = "rezepte.alexanderwallau.de"; | ||
}; | ||
|
||
# enables users which got moved into a seperate file | ||
user = { | ||
awallau.enable = true; | ||
|
@@ -52,11 +70,6 @@ | |
git | ||
]; | ||
|
||
security.acme = { | ||
acceptTerms = true; | ||
defaults.email = "[email protected]"; | ||
}; | ||
|
||
networking = { | ||
enableIPv6 = true; | ||
dhcpcd.IPv6rs = true; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ config, lib, pkgs, ... }: { | ||
|
||
networking = { | ||
firewall.allowedUDPPorts = [ 52192 ]; | ||
wireguard.interfaces.wg0 = { | ||
|
||
ips = [ "192.168.69.2/24" ]; | ||
listenPort = 52192; | ||
mtu = 1412; | ||
|
||
privateKeyFile = toString /var/src/secret/wireguard/privatekey; | ||
|
||
peers = [ | ||
{ | ||
# Public key of the server (not a file path). | ||
publicKey = "VVVqrs6Nxn3MxsTWD+mSFzVJQZpWcY4xMCYOwI70BFU="; | ||
allowedIPs = [ "192.168.69.0/24" "192.168.178.0/24" ]; | ||
# Set this to the server IP and port. | ||
endpoint = "152.70.161.104:51820"; | ||
persistentKeepalive = 25; | ||
} | ||
]; | ||
}; | ||
}; | ||
} |