7 Commits

Author SHA1 Message Date
javalsai dd7ad60710 nixos/services: add gitea server
Check / Nix flake (push) Failing after 9s
Lint / Nix expressions (push) Failing after 10s
2026-05-04 01:56:34 +02:00
javalsai fd18ae4a78 nixos/services: add nginx base configuration 2026-05-04 01:56:34 +02:00
javalsai d7deaa187c nixos/networking: add own fqdn to extraHosts 2026-05-04 01:56:34 +02:00
javalsai c6d66902bb nixos/hosts: add tuxcord-vm host configuration 2026-05-04 01:56:34 +02:00
ErrorNoInternet 4704a887fa nixos: separate openssh firewall port 2026-05-04 01:56:34 +02:00
javalsai eaaffcc289 lib/ssh: add more ssh keys 2026-05-04 01:56:32 +02:00
javalsai d4d560c30f nixos/vm: enable qemu network bridge 2026-05-04 01:55:29 +02:00
2 changed files with 20 additions and 2 deletions
+2 -2
View File
@@ -7,8 +7,8 @@
memorySize = 4096; memorySize = 4096;
qemu.networkingOptions = lib.mkForce [ qemu.networkingOptions = lib.mkForce [
"-net nic,netdev=user.0,model=virtio" "-nic bridge,br=virbr0,id=hn0,model=virt-net-pci,helper=\${QEMU_BRIDGE_HELPER_PATH}"
"-netdev user,id=user.0,\${QEMU_NET_OPTS:+,$QEMU_NET_OPTS}" "-device virtio-net-pci,netdev=hn0,id=nic1,\${QEMU_NET_OPTS:+,$QEMU_NET_OPTS}"
]; ];
}; };
} }
+18
View File
@@ -5,6 +5,24 @@
{ {
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
name = "configuration.nix"; name = "configuration.nix";
shellHook = ''
for path in \
/usr/lib/qemu/qemu-bridge-helper \
/run/wrappers/bin/qemu-bridge-helper
do
if [ -x "$path" ]; then
export QEMU_BRIDGE_HELPER_PATH="$path"
break
fi
done
if [ -z "$QEMU_BRIDGE_HELPER_PATH" ]; then
printf "\033[1;33m%s\033[0m\n" \
"WARN: 'qemu-bridge-helper' not found, make sure it is installed and the nix shell hook is looking for it" >&2
fi
'';
packages = with pkgs; [ packages = with pkgs; [
bat bat
cachix cachix