mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
50 lines
861 B
Nix
50 lines
861 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
modulesPath,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
"${modulesPath}/virtualisation/qemu-vm.nix"
|
|
./module.nix
|
|
];
|
|
|
|
networking = {
|
|
hostName = "archtika-module-test";
|
|
firewall.enable = false;
|
|
};
|
|
|
|
nix.settings.experimental-features = [ "nix-command flakes" ];
|
|
|
|
users.users.dev = {
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" ];
|
|
password = "dev";
|
|
};
|
|
|
|
virtualisation = {
|
|
graphics = false;
|
|
# Alternatively a bridge network for QEMU could be setup, but requires much more effort
|
|
forwardPorts = [
|
|
{
|
|
from = "host";
|
|
host.port = 13000;
|
|
guest.port = 3000;
|
|
}
|
|
{
|
|
from = "host";
|
|
host.port = 14000;
|
|
guest.port = 4000;
|
|
}
|
|
];
|
|
};
|
|
|
|
services.archtika = {
|
|
enable = true;
|
|
jwtSecret = "test-secret";
|
|
};
|
|
|
|
system.stateVersion = "24.05";
|
|
}
|