attempt fixes
This commit is contained in:
parent
0817c730c7
commit
90c0fa11e7
3 changed files with 14 additions and 2 deletions
|
|
@ -44,7 +44,7 @@
|
||||||
service.command = [ config.nixos.build.run-nginx ];
|
service.command = [ config.nixos.build.run-nginx ];
|
||||||
service.useHostStore = true;
|
service.useHostStore = true;
|
||||||
service.ports = [
|
service.ports = [
|
||||||
"8000:80" # host:container
|
"8009:80" # host:container
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
networking.firewall.allowedTCPPorts = [80 22 443];
|
networking.firewall.allowedTCPPorts = [80 22 443 8009];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,17 @@ in {
|
||||||
age.secrets.nearlyfreespeech.file = ./secrets/nearlyfreespeech.age;
|
age.secrets.nearlyfreespeech.file = ./secrets/nearlyfreespeech.age;
|
||||||
age.secrets.nearlyfreespeech.owner = "root";
|
age.secrets.nearlyfreespeech.owner = "root";
|
||||||
|
|
||||||
|
writeShellScriptBinInRepoRoot = name: script: pkgs.writeShellScriptBin name ''
|
||||||
|
cd `${pkgs.git}/bin/git rev-parse --show-toplevel`
|
||||||
|
${script}
|
||||||
|
'';
|
||||||
|
|
||||||
|
start-arion-run = writeShellScriptBinInRepoRoot "start-arion-run" ''
|
||||||
|
cd arion/
|
||||||
|
${pkgs.arion}/bin/arion down
|
||||||
|
${pkgs.arion}/bin/arion up
|
||||||
|
'';
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
ddnsPkg
|
ddnsPkg
|
||||||
pullomaticPkg
|
pullomaticPkg
|
||||||
|
|
@ -56,6 +67,7 @@ in {
|
||||||
|
|
||||||
# For docker-compose like setups
|
# For docker-compose like setups
|
||||||
pkgs.arion
|
pkgs.arion
|
||||||
|
start-arion-run
|
||||||
];
|
];
|
||||||
|
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue