Add fastfetch

This commit is contained in:
2026-06-28 18:50:03 +01:00
parent 0650c43ef5
commit 4f94f54bb0
2 changed files with 25 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
{ ... }: { pkgs, ... }:
{ {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
@@ -9,4 +9,27 @@
]; ];
networking.interfaces.eth0.wakeOnLan.enable = true; networking.interfaces.eth0.wakeOnLan.enable = true;
# ── NetBird zero-trust VPN ─────────────────────────────────
services.netbird = {
enable = true;
login = {
enable = true;
setupKeyFile = "/run/secrets/netbird-setup-key";
};
};
# Decrypt the NetBird setup key from SOPS secrets before netbird starts
system.activationScripts.netbird-setup-key = {
text = ''
mkdir -p /run/secrets
${pkgs.sops}/bin/sops \
--decrypt \
--extract '["netbird_setup_key"]' \
${./secrets.yaml} \
> /run/secrets/netbird-setup-key
chmod 600 /run/secrets/netbird-setup-key
'';
deps = [ "etc" ];
};
} }

View File

@@ -14,5 +14,6 @@
sysstat sysstat
dig dig
openssl openssl
fastfetch
]; ];
} }