feat: introduce treefmt and fmt all

This commit is contained in:
steveej 2024-11-15 10:17:56 +01:00
parent 80250b0179
commit 5d5282a914
213 changed files with 4967 additions and 4423 deletions

View file

@ -4,10 +4,12 @@
config,
nodeName,
...
}: let
}:
let
keys = import ../../../variables/keys.nix;
passwords = import ../../../variables/passwords.crypt.nix;
in {
in
{
networking.firewall.enable = true;
networking.firewall.allowedTCPPorts = [
# iperf3
@ -37,7 +39,7 @@ in {
networking.nat = {
enable = true;
internalInterfaces = ["ve-+"];
internalInterfaces = [ "ve-+" ];
externalInterface = "eth0";
};
@ -45,7 +47,9 @@ in {
# services.kubernetes.roles = ["master" "node"];
# virtualization
virtualisation = {docker.enable = true;};
virtualisation = {
docker.enable = true;
};
services.spice-vdagentd.enable = true;
services.qemuGuest.enable = true;
@ -53,7 +57,7 @@ in {
systemd.services."sshd-status" = {
enable = true;
description = "sshd-status service";
path = [pkgs.systemd];
path = [ pkgs.systemd ];
script = ''
systemctl status sshd | grep -i tasks
'';
@ -73,11 +77,13 @@ in {
# };
# };
nix.gc = {automatic = true;};
nix.gc = {
automatic = true;
};
boot.initrd.network = {
enable = true;
udhcpc.extraArgs = ["-x hostname:${config.networking.hostName}"];
udhcpc.extraArgs = [ "-x hostname:${config.networking.hostName}" ];
ssh = {
enable = true;
@ -104,7 +110,12 @@ in {
inherit config;
hostAddress = "192.168.100.16";
localAddress = "192.168.100.17";
subvolumes = ["mailserver" "webserver" "backup" "syncthing"];
subvolumes = [
"mailserver"
"webserver"
"backup"
"syncthing"
];
};
bkpTarget = import ../../containers/backup-target.nix {