Add rock5b to wireguard VPN

This commit is contained in:
Andrea Ciceri 2023-04-12 12:25:56 +02:00
parent 11b7466753
commit d20b2c386e
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
7 changed files with 59 additions and 36 deletions

View file

@ -168,7 +168,13 @@
};
rock5b = {
system = "aarch64-linux";
extraModules = [inputs.rock5b.nixosModules.default];
extraModules = with inputs; [
disko.nixosModules.disko
rock5b.nixosModules.default
];
secrets = {
"rock5b-wireguard-private-key" = {};
};
};
pbp = {
system = "aarch64-linux";

View file

@ -10,6 +10,7 @@
"common"
"ssh"
"ccr"
"wireguard-client"
];
ccr.enable = true;
@ -25,28 +26,7 @@
generic-extlinux-compatible.enable = true;
};
disko.devices = import ./disko.nix {};
services.nginx.enable = true;
services.nginx.virtualHosts."localhost" = {
cgit = {
enable = true;
virtual-root = "/";
include = [
(builtins.toFile "cgitrc-extra-1" ''
repo.url=test-repo.git
repo.path=/srv/git/test-repo.
repo.desc=the master foo repository
repo.owner=fooman@example.com
css=/custom.css
'')
(builtins.toFile "cgitrc-extra-2" ''
# Allow http transport git clone
enable-http-clone=1
'')
];
};
};
disko = import ./disko.nix {};
fileSystems."/mnt/film" = {
device = "//ccr.ydns.eu/film";

View file

@ -1,5 +1,5 @@
{emmc ? "/dev/mmcblk0", ...}: {
disko.devices = {
devices = {
disk = {
emmc = {
type = "disk";