nixos-config/hosts/20212060/configuration.nix

46 lines
773 B
Nix
Raw Normal View History

2025-05-13 14:26:22 +02:00
{ flake, ... }:
{
# State version
system.stateVersion = "24.05";
# Machine hostname
networking.hostName = "20212060";
# Admin users
2025-05-28 15:58:52 +02:00
users.users.jan.extraGroups = [
"wheel"
"wireshark"
];
2025-05-13 14:26:22 +02:00
2025-05-28 12:23:31 +02:00
# Enable virtualisation for VMs
2025-05-18 15:01:05 +02:00
virtualisation.libvirtd.enable = true;
2025-05-28 15:58:52 +02:00
# Enable wireshark
programs.wireshark = {
enable = true;
dumpcap.enable = true;
usbmon.enable = true;
};
2025-05-28 12:23:31 +02:00
# Set up wstunnel client
services.wstunnel = {
enable = true;
clients.wg-tunnel = {
2025-05-28 12:36:12 +02:00
connectTo = "wss://tunnel.bulthuis.dev:443";
2025-05-28 12:23:31 +02:00
localToRemote = [
2025-05-29 09:59:09 +02:00
"udp://51820:10.10.40.100:51820"
2025-05-28 12:23:31 +02:00
];
};
};
# Module setup
2025-05-13 14:26:22 +02:00
modules = {
profiles.laptop.enable = true;
};
imports = [
./hardware-configuration.nix
];
}