Different Nix configurations for qs and prod

This commit is contained in:
thiloho
2024-09-15 14:23:54 +02:00
parent 756040e5ea
commit cc3687aaca
6 changed files with 57 additions and 26 deletions

View File

@@ -0,0 +1,19 @@
{ pkgs, localArchtikaPackage, ... }:
{
imports = [
./hardware-configuration.nix
../shared.nix
../../module.nix
];
networking.hostName = "archtika-prod";
services.archtika = {
enable = true;
package = localArchtikaPackage;
domain = "demo.archtika.com";
acmeEmail = "thilo.hohlt@tutanota.com";
dnsProvider = "porkbun";
dnsEnvironmentFile = /var/lib/porkbun.env;
};
}

19
nix/deploy/qs/default.nix Normal file
View File

@@ -0,0 +1,19 @@
{ pkgs, localArchtikaPackage, ... }:
{
imports = [
./hardware-configuration.nix
../shared.nix
../../module.nix
];
networking.hostName = "archtika-qs";
services.archtika = {
enable = true;
package = localArchtikaPackage;
domain = "qs.archtika.com";
acmeEmail = "thilo.hohlt@tutanota.com";
dnsProvider = "porkbun";
dnsEnvironmentFile = /var/lib/porkbun.env;
};
}

View File

@@ -1,10 +1,5 @@
{ pkgs, localArchtikaPackage, ... }:
{ pkgs, ... }:
{
imports = [
./hardware-configuration.nix
../module.nix
];
boot = {
loader = {
systemd-boot.enable = true;
@@ -23,7 +18,6 @@
nixpkgs.config.allowUnfree = true;
networking = {
hostName = "archtika-qs";
networkmanager.enable = true;
firewall = {
allowedTCPPorts = [
@@ -62,14 +56,5 @@
settings.PasswordAuthentication = false;
};
services.archtika = {
enable = true;
package = localArchtikaPackage;
domain = "qs.archtika.com";
acmeEmail = "thilo.hohlt@tutanota.com";
dnsProvider = "porkbun";
dnsEnvironmentFile = /var/lib/porkbun.env;
};
system.stateVersion = "24.11";
}