forked from DGNum/lab-infra
fix: fmt
This commit is contained in:
parent
271fa9ec35
commit
997e0e71db
2 changed files with 16 additions and 19 deletions
|
@ -1,9 +1,5 @@
|
||||||
# TODO: revamp to use the same framework as the other VMs
|
# TODO: revamp to use the same framework as the other VMs
|
||||||
{
|
{ pkgs, inputs, ... }:
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
address = "129.199.146.101";
|
address = "129.199.146.101";
|
||||||
|
@ -20,7 +16,20 @@ in
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
|
||||||
networking.hostName = "photoprism";
|
networking = {
|
||||||
|
hostName = "photoprism";
|
||||||
|
|
||||||
|
firewall.allowedTCPPorts = [
|
||||||
|
22
|
||||||
|
80
|
||||||
|
443
|
||||||
|
8007
|
||||||
|
];
|
||||||
|
firewall.allowedUDPPorts = [ ];
|
||||||
|
|
||||||
|
useNetworkd = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
disko.devices = import ./disko.nix;
|
disko.devices = import ./disko.nix;
|
||||||
|
|
||||||
|
@ -46,15 +55,6 @@ in
|
||||||
security.acme.acceptTerms = true;
|
security.acme.acceptTerms = true;
|
||||||
security.acme.defaults.email = "webmaster@nixos.org";
|
security.acme.defaults.email = "webmaster@nixos.org";
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
|
||||||
22
|
|
||||||
80
|
|
||||||
443
|
|
||||||
8007
|
|
||||||
];
|
|
||||||
networking.firewall.allowedUDPPorts = [ ];
|
|
||||||
|
|
||||||
networking.useNetworkd = true;
|
|
||||||
|
|
||||||
systemd.network = {
|
systemd.network = {
|
||||||
config.routeTables = {
|
config.routeTables = {
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
{
|
{ pkgs, ... }:
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
port = 2342;
|
port = 2342;
|
||||||
|
|
Loading…
Reference in a new issue