cleanup whitespace and module layout

This commit is contained in:
tdback 2024-11-12 18:30:19 -05:00
parent 638421a283
commit bb4e47bacf
10 changed files with 22 additions and 43 deletions

View file

@ -7,7 +7,6 @@ in
services.gotosocial = {
enable = true;
package = pkgs.unstable.gotosocial;
settings = {
application-name = "gotosocial";
host = "${domain}";

View file

@ -41,6 +41,13 @@ in
${adminCmd} create --admin --email ${email} --username ${user} --password "$(tr -d '\n' < ${pwd})" || true
'';
services.openssh.settings.AllowUsers = [ "forgejo" ];
services.caddy.virtualHosts."${domain}".extraConfig = ''
encode zstd gzip
reverse_proxy http://localhost:${builtins.toString port}
'';
age.secrets.forgejoRunnerToken.file = ../../secrets/forgejoRunnerToken.age;
services.gitea-actions-runner = {
package = pkgs.unstable.forgejo-runner;
@ -55,11 +62,4 @@ in
];
};
};
services.openssh.settings.AllowUsers = [ "forgejo" ];
services.caddy.virtualHosts."${domain}".extraConfig = ''
encode zstd gzip
reverse_proxy http://localhost:${builtins.toString port}
'';
}

View file

@ -6,20 +6,19 @@
"${inputs.nixpkgs-unstable}/nixos/modules/services/databases/redis.nix"
];
services = {
immich = {
enable = true;
package = pkgs.unstable.immich;
host = "localhost";
port = 2283;
mediaLocation = "/lagoon/media/immich";
environment = {
IMMICH_LOG_LEVEL = "log";
};
services.immich = {
enable = true;
package = pkgs.unstable.immich;
host = "localhost";
port = 2283;
mediaLocation = "/lagoon/media/immich";
environment = {
IMMICH_LOG_LEVEL = "log";
};
postgresql.package = pkgs.unstable.postgresql;
};
services.postgresql.package = pkgs.unstable.postgresql;
services.caddy.virtualHosts."photographs.tdback.net".extraConfig = ''
encode zstd gzip
reverse_proxy http://localhost:2283

View file

@ -1,23 +1,15 @@
{ config, ... }:
{
hardware.nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.stable;
open = false;
nvidiaSettings = true;
forceFullCompositionPipeline = true;
modesetting.enable = true;
powerManagement = {
enable = false;
finegrained = false;
};
# Don't use the open-source driver!
open = false;
nvidiaSettings = true;
# Fix screen tearing.
forceFullCompositionPipeline = true;
# Optional, but specify version of driver.
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
services.xserver.videoDrivers = [ "nvidia" ];

View file

@ -2,13 +2,11 @@
{
virtualisation = {
containers.enable = true;
oci-containers.backend = "podman";
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
oci-containers.backend = "podman";
};
}

View file

@ -7,20 +7,17 @@ in
enable = true;
package = pkgs.searxng;
environmentFile = "/var/lib/searx/env";
settings = {
general = {
debug = false;
instance_name = "searx";
};
search = {
safe_search = 1;
autocomplete = "duckduckgo";
autocomplete_min = 4;
default_lang = "en-US";
};
server = {
port = port;
bind_address = "0.0.0.0";
@ -28,7 +25,6 @@ in
public_instance = false;
image_proxy = true;
};
ui.static_use_hash = true;
};
};

View file

@ -4,7 +4,6 @@
enable = true;
package = pkgs.sftpgo;
dataDir = "/var/lib/sftpgo";
settings = {
httpd.bindings = [{
port = 8080;

View file

@ -5,7 +5,6 @@
startWhenNeeded = true;
ports = [ 2222 ];
openFirewall = true;
settings = {
AllowUsers = [ "tdback" ];
PermitRootLogin = "no";

View file

@ -4,7 +4,6 @@
enable = true;
package = pkgs.xonotic-dedicated;
openFirewall = true;
settings = {
hostname = "tdback's Xonotic Server";
net_address = "0.0.0.0";

View file

@ -14,10 +14,8 @@
ZED_EMAIL_ADDR = [ "root" ];
ZED_EMAIL_PROG = "/run/current-system/sw/bin/pushover";
ZED_EMAIL_OPTS = "-t '@SUBJECT@'";
ZED_NOTIFY_INTERVAL_SECS = 3600;
ZED_NOTIFY_VERBOSE = true;
ZED_USE_ENCLOSURE_LEDS = true;
ZED_SCRUB_AFTER_RESILVER = true;
};