mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Move nix code into separate files and directory and create basic module
This commit is contained in:
49
nix/module-test.nix
Normal file
49
nix/module-test.nix
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
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";
|
||||
}
|
||||
Reference in New Issue
Block a user