Add path option for module

This commit is contained in:
thiloho
2024-08-13 18:27:43 +02:00
parent 96c00096b4
commit 6785bd0dfa
4 changed files with 39 additions and 14 deletions

View File

@@ -1,6 +1,9 @@
{ pkgs, ... }:
{ pkgs, localArchtikaPackage, ... }:
{
imports = [ ./hardware-configuration.nix ];
imports = [
./hardware-configuration.nix
../module.nix
];
boot = {
loader = {
@@ -19,9 +22,16 @@
nixpkgs.config.allowUnfree = true;
networking.networkmanager.enable = true;
networking.hostName = "archtika-demo-server";
networking = {
hostName = "archtika-demo-server";
networkmanager.enable = true;
firewall = {
allowedTCPPorts = [
10000
15000
];
};
};
security.pam = {
sshAgentAuth.enable = true;
@@ -52,5 +62,11 @@
settings.PasswordAuthentication = false;
};
services.archtika = {
enable = true;
package = localArchtikaPackage;
jwtSecret = "a42kVyAhTImYxZeebZkApoAZLmf0VtDA";
};
system.stateVersion = "24.11";
}