Emitter: Add labs
This commit is contained in:
parent
689d55ed69
commit
bb9db6f1ba
2 changed files with 31 additions and 0 deletions
|
|
@ -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
29
hosts/labs.nix
Normal 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
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue