Emitter: Add labs

This commit is contained in:
fruchti 2026-02-19 21:02:15 +01:00
parent 689d55ed69
commit bb9db6f1ba
2 changed files with 31 additions and 0 deletions

View file

@ -3,6 +3,8 @@
imports = [ imports = [
./forgejo.nix ./forgejo.nix
./tls_sni.nix ./tls_sni.nix
./labs.nix
]; ];
boot.loader.grub.enable = true; boot.loader.grub.enable = true;

29
hosts/labs.nix Normal file
View file

@ -0,0 +1,29 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
vagrant
];
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"vagrant"
];
environment.variables = {
VAGRANT_DEFAULT_PROVIDER = "libvirt";
};
virtualisation.libvirtd = {
enable = true;
};
users.users.fruchti.extraGroups = [
"libvirtd"
];
networking.firewall.allowedTCPPorts = [
8000
8001
4119
2222
];
}