Upgrade inputs to 24.11 #16
18 changed files with 6 additions and 192 deletions
|
@ -27,7 +27,6 @@
|
||||||
|
|
||||||
- [calanda](nixos-configurations/calanda/README.md)
|
- [calanda](nixos-configurations/calanda/README.md)
|
||||||
- [cyprianspitz](nixos-configurations/cyprianspitz/README.md)
|
- [cyprianspitz](nixos-configurations/cyprianspitz/README.md)
|
||||||
- [fulberg](nixos-configurations/fulberg/README.md)
|
|
||||||
- [lindberg](nixos-configurations/lindberg/README.md)
|
- [lindberg](nixos-configurations/lindberg/README.md)
|
||||||
- [stompert](nixos-configurations/stompert/README.md)
|
- [stompert](nixos-configurations/stompert/README.md)
|
||||||
- [tierberg](nixos-configurations/tierberg/README.md)
|
- [tierberg](nixos-configurations/tierberg/README.md)
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
{
|
{
|
||||||
"fulberg": {
|
|
||||||
"hostName": "fulberg",
|
|
||||||
"sshKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDCG9qqpUOJ2RsohIqhMuw3YZZSrnPqhf5ayh5y0Cq/I"
|
|
||||||
},
|
|
||||||
"calanda": {
|
"calanda": {
|
||||||
"hostName": "calanda",
|
"hostName": "calanda",
|
||||||
"sshKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKdoOZcFFRXIqEWqUnwCk/kqP8DZw6/4omDefCT6aNN4"
|
"sshKey": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKdoOZcFFRXIqEWqUnwCk/kqP8DZw6/4omDefCT6aNN4"
|
||||||
|
|
|
@ -36,9 +36,6 @@
|
||||||
calanda = {
|
calanda = {
|
||||||
v4.ip = "10.1.2.1";
|
v4.ip = "10.1.2.1";
|
||||||
};
|
};
|
||||||
fulberg = {
|
|
||||||
v4.ip = "10.1.2.2";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -27,15 +27,6 @@
|
||||||
domain = "backplane.net.qo.is";
|
domain = "backplane.net.qo.is";
|
||||||
|
|
||||||
hosts = {
|
hosts = {
|
||||||
fulberg = {
|
|
||||||
v4.ip = "10.250.0.1";
|
|
||||||
endpoint = {
|
|
||||||
fqdn = physical-network.plessur-ext.hosts.calanda.fqdn;
|
|
||||||
port = 51821;
|
|
||||||
};
|
|
||||||
publicKey = "xcQOu+pp4ckNygcsLmJL1NmUzbbC+k3I7y+hJ9Ul4nk=";
|
|
||||||
persistentKeepalive = 25;
|
|
||||||
};
|
|
||||||
lindberg = {
|
lindberg = {
|
||||||
v4.ip = "10.250.0.2";
|
v4.ip = "10.250.0.2";
|
||||||
#endpoint = { # TODO: Port forwarding
|
#endpoint = { # TODO: Port forwarding
|
||||||
|
|
|
@ -18,7 +18,7 @@ package "plessur.net.qo.is" {
|
||||||
]
|
]
|
||||||
|
|
||||||
node calanda
|
node calanda
|
||||||
node fulberg
|
node cyprianspitz
|
||||||
|
|
||||||
cloud plessurnet [
|
cloud plessurnet [
|
||||||
<i>LAN Plessur
|
<i>LAN Plessur
|
||||||
|
@ -26,7 +26,7 @@ package "plessur.net.qo.is" {
|
||||||
|
|
||||||
mediaconvchur - "enp4" calanda
|
mediaconvchur - "enp4" calanda
|
||||||
calanda "br0 (enp2, wlp1, wlp5)" --- plessurnet
|
calanda "br0 (enp2, wlp1, wlp5)" --- plessurnet
|
||||||
calanda "enp4" -- "eno1" fulberg
|
plessurnet -- cyprianspitz
|
||||||
}
|
}
|
||||||
|
|
||||||
package "riedbach.net.qo.is" {
|
package "riedbach.net.qo.is" {
|
||||||
|
|
|
@ -66,14 +66,6 @@ in
|
||||||
# DMZ Portforwarding
|
# DMZ Portforwarding
|
||||||
networking.nat.forwardPorts =
|
networking.nat.forwardPorts =
|
||||||
let
|
let
|
||||||
fulbergPort = (
|
|
||||||
proto: port: {
|
|
||||||
destination = "10.1.2.2:${toString port}";
|
|
||||||
proto = proto;
|
|
||||||
sourcePort = port;
|
|
||||||
loopbackIPs = [ "85.195.200.253" ];
|
|
||||||
}
|
|
||||||
);
|
|
||||||
cyprianspitzPort = (
|
cyprianspitzPort = (
|
||||||
proto: port: {
|
proto: port: {
|
||||||
destination = "10.1.1.11:${toString port}";
|
destination = "10.1.1.11:${toString port}";
|
||||||
|
@ -84,26 +76,12 @@ in
|
||||||
);
|
);
|
||||||
in
|
in
|
||||||
[
|
[
|
||||||
{
|
|
||||||
destination = "10.1.2.2:22";
|
|
||||||
proto = "tcp";
|
|
||||||
sourcePort = 8022;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
destination = "10.1.2.2:2222";
|
|
||||||
proto = "tcp";
|
|
||||||
sourcePort = 8222;
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
destination = "10.1.1.11:2222";
|
destination = "10.1.1.11:2222";
|
||||||
proto = "tcp";
|
proto = "tcp";
|
||||||
sourcePort = 8223;
|
sourcePort = 8223;
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
++ map (fulbergPort "udp") [
|
|
||||||
51820
|
|
||||||
51821
|
|
||||||
]
|
|
||||||
++ map (cyprianspitzPort "tcp") [
|
++ map (cyprianspitzPort "tcp") [
|
||||||
80
|
80
|
||||||
443
|
443
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
# fulberg
|
|
|
@ -1 +0,0 @@
|
||||||
{ ... }: { }
|
|
|
@ -1,35 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
{
|
|
||||||
|
|
||||||
qois.backup-server = {
|
|
||||||
enable = true;
|
|
||||||
backupStorageRoot = "/mnt/nas/backup";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.borgbackup.repos =
|
|
||||||
let
|
|
||||||
backupRoot = "/mnt/nas/backup";
|
|
||||||
hostBackupRoot = "${backupRoot}/hosts";
|
|
||||||
dataBackupRoot = "${backupRoot}/data";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
"lindberg-nextcloud" = {
|
|
||||||
authorizedKeys = [
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIpzfp9VqclbPJ42ZrkRpvjMSTeyq0qce03zCRXqIHMw backup@lindberg-nextcloud"
|
|
||||||
];
|
|
||||||
path = "${hostBackupRoot}/lindberg-nextcloud";
|
|
||||||
};
|
|
||||||
"lindberg-data" = {
|
|
||||||
authorizedKeys = [
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGTmyoVONC12MgOodvzdPpZzLSVwpkC6zkf+Rg0W36gy backup-data@lindberg"
|
|
||||||
];
|
|
||||||
path = "${dataBackupRoot}/lindberg";
|
|
||||||
};
|
|
||||||
"lindberg-build-system" = {
|
|
||||||
authorizedKeys = [
|
|
||||||
"ssh-ed25519 AAAATODOTODOTODONTE5AAAAIGTmyoVONC12MgOodvzdPpZzLSVwpkC6zkf+Rg0W36gy backup-system@lindberg-build"
|
|
||||||
];
|
|
||||||
path = "${dataBackupRoot}/lindberg-build-system";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,22 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
{
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
../../defaults/base
|
|
||||||
../../defaults/hardware/apu.nix
|
|
||||||
../../defaults/meta
|
|
||||||
./applications
|
|
||||||
./backup.nix
|
|
||||||
./filesystems.nix
|
|
||||||
./networking.nix
|
|
||||||
./secrets.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
|
||||||
# settings for stateful data, like fi:le locations and database versions
|
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
||||||
# this value at the release version of the first install of this system.
|
|
||||||
# Before changing this value read the documentation for this option
|
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
||||||
system.stateVersion = "23.05"; # Did you read the comment?
|
|
||||||
}
|
|
|
@ -1,31 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
{
|
|
||||||
|
|
||||||
fileSystems = {
|
|
||||||
"/" = {
|
|
||||||
device = "/dev/disk/by-uuid/360a6bc9-fc4e-4803-bd53-69320ac32ac5";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [
|
|
||||||
"defaults"
|
|
||||||
"subvol=nixos"
|
|
||||||
"noatime"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"/mnt/nas" = {
|
|
||||||
device = "10.1.1.39:/qois";
|
|
||||||
fsType = "nfs";
|
|
||||||
options = [
|
|
||||||
"defaults"
|
|
||||||
"noatime"
|
|
||||||
"soft"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [ { device = "/dev/disk/by-uuid/73f91e99-d856-4504-b6b2-d60f855d6d95"; } ];
|
|
||||||
|
|
||||||
boot.loader.grub = {
|
|
||||||
enable = true;
|
|
||||||
device = "/dev/sda";
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,48 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
let
|
|
||||||
meta = config.qois.meta;
|
|
||||||
plessur-dmz-net = meta.network.physical.plessur-dmz;
|
|
||||||
getCalandaIp4 = net: net.hosts.calanda.v4.ip;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
networking.hostName = meta.hosts.fulberg.hostName;
|
|
||||||
|
|
||||||
imports = [ ../../defaults/backplane-net ];
|
|
||||||
|
|
||||||
# WWAN is currently not available due to a broken SIM-card.
|
|
||||||
#services.qois.wwan = {
|
|
||||||
# enable = true;
|
|
||||||
# apn = "gprs.swisscom.ch";
|
|
||||||
# networkInterface = "wwp0s19u1u3i12";
|
|
||||||
#};
|
|
||||||
|
|
||||||
networking.interfaces.enp1s0 = {
|
|
||||||
useDHCP = false;
|
|
||||||
ipv4.addresses = [
|
|
||||||
{
|
|
||||||
inherit (plessur-dmz-net.v4) prefixLength;
|
|
||||||
address = plessur-dmz-net.hosts.fulberg.v4.ip;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.defaultGateway = plessur-dmz-net.v4.gateway;
|
|
||||||
networking.nameservers = plessur-dmz-net.v4.nameservers;
|
|
||||||
|
|
||||||
# Configure this node to be used as an vpn exit node
|
|
||||||
qois.backup-client.includePaths = [ "/var/lib/tailscale" ];
|
|
||||||
services.tailscale = {
|
|
||||||
enable = true;
|
|
||||||
openFirewall = true;
|
|
||||||
useRoutingFeatures = "server";
|
|
||||||
authKeyFile = config.sops.secrets."tailscale/key".path;
|
|
||||||
extraUpFlags = [
|
|
||||||
"--login-server=https://vpn.qo.is"
|
|
||||||
"--advertise-exit-node"
|
|
||||||
(
|
|
||||||
with meta.network.virtual.backplane.v4; "--advertise-routes=${id}/${builtins.toString prefixLength}"
|
|
||||||
)
|
|
||||||
"--advertise-tags=tag:srv"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
sops.secrets = {
|
|
||||||
"tailscale/key" = {
|
|
||||||
restartUnits = [ "tailscale.service" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -3,7 +3,6 @@
|
||||||
let
|
let
|
||||||
vnet = config.qois.meta.network.virtual.backplane.hosts;
|
vnet = config.qois.meta.network.virtual.backplane.hosts;
|
||||||
systemTargets = [
|
systemTargets = [
|
||||||
"fulberg"
|
|
||||||
"tierberg"
|
"tierberg"
|
||||||
];
|
];
|
||||||
systemJobs = builtins.listToAttrs (
|
systemJobs = builtins.listToAttrs (
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
let
|
let
|
||||||
backupConfiguration = {
|
backupConfiguration = {
|
||||||
restartUnits = [
|
restartUnits = [
|
||||||
"borgbackup-job-system-fulberg.service"
|
"borgbackup-job-system-cyprianspitz.service"
|
||||||
"borgbackup-job-system-tierberg.service"
|
"borgbackup-job-system-tierberg.service"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
let
|
let
|
||||||
backupConfiguration = {
|
backupConfiguration = {
|
||||||
restartUnits = [
|
restartUnits = [
|
||||||
"borgbackup-job-data-fulberg.service"
|
"borgbackup-job-data-cyprianspitz.service"
|
||||||
"borgbackup-job-data-tierberg.service"
|
"borgbackup-job-data-tierberg.service"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -59,5 +59,5 @@
|
||||||
# compatible, in order to avoid breaking some software such as database
|
# compatible, in order to avoid breaking some software such as database
|
||||||
# servers. You should change this only after NixOS release notes say you
|
# servers. You should change this only after NixOS release notes say you
|
||||||
# should.
|
# should.
|
||||||
system.stateVersion = "22.11"; # Did you read the comment?
|
system.stateVersion = "24.11"; # Did you read the comment?
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ deploy-qois .#lindberg-nextcloud .#lindberg-build
|
||||||
deploy-qois .#lindberg
|
deploy-qois .#lindberg
|
||||||
|
|
||||||
# Deploy slow physical hosts (maybe do individually)
|
# Deploy slow physical hosts (maybe do individually)
|
||||||
deploy-qois --confirm-timeout 600 --activation-timeout 600 --targets .#fulberg .#tierberg .#stompert .#stompert
|
deploy-qois --confirm-timeout 600 --activation-timeout 600 --targets .#tierberg .#stompert .#stompert
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue