cleanup whitespace and module layout
This commit is contained in:
parent
638421a283
commit
bb4e47bacf
10 changed files with 22 additions and 43 deletions
|
@ -7,7 +7,6 @@ in
|
|||
services.gotosocial = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.gotosocial;
|
||||
|
||||
settings = {
|
||||
application-name = "gotosocial";
|
||||
host = "${domain}";
|
||||
|
|
|
@ -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}
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -6,8 +6,7 @@
|
|||
"${inputs.nixpkgs-unstable}/nixos/modules/services/databases/redis.nix"
|
||||
];
|
||||
|
||||
services = {
|
||||
immich = {
|
||||
services.immich = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.immich;
|
||||
host = "localhost";
|
||||
|
@ -17,8 +16,8 @@
|
|||
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
|
||||
|
|
|
@ -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" ];
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
enable = true;
|
||||
package = pkgs.sftpgo;
|
||||
dataDir = "/var/lib/sftpgo";
|
||||
|
||||
settings = {
|
||||
httpd.bindings = [{
|
||||
port = 8080;
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
startWhenNeeded = true;
|
||||
ports = [ 2222 ];
|
||||
openFirewall = true;
|
||||
|
||||
settings = {
|
||||
AllowUsers = [ "tdback" ];
|
||||
PermitRootLogin = "no";
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
enable = true;
|
||||
package = pkgs.xonotic-dedicated;
|
||||
openFirewall = true;
|
||||
|
||||
settings = {
|
||||
hostname = "tdback's Xonotic Server";
|
||||
net_address = "0.0.0.0";
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue