treewide: fix deadnix errors

This commit is contained in:
Felix Buehler 2023-11-07 22:00:00 +01:00
parent a36dccb271
commit 46881de8eb
59 changed files with 70 additions and 93 deletions

View file

@ -1,5 +1,5 @@
# manages and downloads subtitles
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
let
cfg = config.my.services.bazarr;
domain = config.networking.domain;

View file

@ -2,7 +2,6 @@
{ config, lib, pkgs, ... }:
let
cfg = config.my.services.blackbox;
domain = config.networking.domain;
blackBoxConfig = {
modules = {
http_2xx = {

View file

@ -2,7 +2,6 @@
{ config, lib, pkgs, ... }:
let
cfg = config.my.services.blocky;
domain = config.networking.domain;
in
{
options.my.services.blocky = with lib; {

View file

@ -1,5 +1,5 @@
# running dyndns updates
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
let
cfg = config.my.services.dyndns;
domain = config.networking.domain;

View file

@ -73,7 +73,7 @@ in
};
'';
type = lib.types.attrsOf (lib.types.submodule (
{ name, config, ... }: {
{ ... }: {
options = {
# enable = lib.mkEnableOption "exportarr-${name}";
port = lib.mkOption {
@ -119,7 +119,7 @@ in
config = lib.mkIf (cfg != { }) {
assertions = lib.mapAttrsToList
(name: config: {
(name: _config: {
assertion = builtins.elem name [ "sonarr" "radarr" "lidarr" "prowlarr" "readarr" "sabnzbd" ];
message = "exportarr does not support this service.";
})

View file

@ -1,5 +1,5 @@
# My own personal homepage
{ config, lib, pkgs, inputs, ... }:
{ config, lib, inputs, ... }:
let
cfg = config.my.services.homepage;
domain = config.networking.domain;

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
{
options.webapps = {
@ -124,6 +124,6 @@
});
}
);
my.services.blackbox.http_endpoints = lib.mapAttrsToList (key: value: value.dashboard.link) config.webapps.apps ++ [ "https://${config.networking.domain}/" ];
my.services.blackbox.http_endpoints = lib.mapAttrsToList (_key: value: value.dashboard.link) config.webapps.apps ++ [ "https://${config.networking.domain}/" ];
};
}

View file

@ -1,5 +1,5 @@
# The Free Software Media System
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
let
cfg = config.my.services.initrd-ssh;
in

View file

@ -1,5 +1,5 @@
# manages and downloads films
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
let
cfg = config.my.services.jellyseerr;
domain = config.networking.domain;

View file

@ -2,7 +2,6 @@
{ config, lib, pkgs, ... }:
let
cfg = config.my.services.loki;
domain = config.networking.domain;
in
{
options.my.services.loki = with lib; {

View file

@ -1,8 +1,7 @@
# adjusted from: https://github.com/NixOS/nixos-org-configurations/blob/master/delft/eris/alertmanager-matrix-forwarder.nix
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
let
cfg = config.my.services.matrix-bot;
domain = config.networking.domain;
in
{
options.my.services.matrix-bot = with lib; {

View file

@ -2,7 +2,6 @@
{ config, lib, pkgs, inputs, ... }:
let
cfg = config.my.services.node-exporter;
domain = config.networking.domain;
in
{
options.my.services.node-exporter = with lib; {
@ -57,7 +56,7 @@ in
let
inputsWithDate = lib.filterAttrs (_: input: input ? lastModified) inputs;
flakeAttrs = input: (lib.mapAttrsToList (n: v: ''${n}="${v}"'')
(lib.filterAttrs (n: v: (builtins.typeOf v) == "string") input));
(lib.filterAttrs (_n: v: (builtins.typeOf v) == "string") input));
lastModified = name: input: ''
flake_input_last_modified{input="${name}",${lib.concatStringsSep "," (flakeAttrs input)}} ${toString input.lastModified}'';
in

View file

@ -1,5 +1,5 @@
# 3d-printing software
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
let
cfg = config.my.services.octoprint;
in
@ -9,7 +9,7 @@ in
plugins = mkOption {
type = types.functionTo (types.listOf types.package);
default = plugins: [ ];
default = [ ];
defaultText = literalExpression "plugins: []";
example = literalExpression "plugins: with plugins; [ themeify stlviewer ]";
description = lib.mdDoc "Additional plugins to be used. Available plugins are passed through the plugins input.";

View file

@ -1,5 +1,5 @@
# document management system
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
let
cfg = config.my.services.paperless;
domain = config.networking.domain;

View file

@ -1,5 +1,5 @@
# a password-generator using the marokov model
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
let
cfg = config.my.services.passworts;
domain = config.networking.domain;

View file

@ -1,5 +1,5 @@
# self-hosted photo gallery
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
let
cfg = config.my.services.photoprism;
domain = config.networking.domain;

View file

@ -1,5 +1,5 @@
# # log forwarding
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
let
cfg = config.my.services.promtail;
domain = config.networking.domain;

View file

@ -1,5 +1,5 @@
# manages indexes
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
let
cfg = config.my.services.prowlarr;
domain = config.networking.domain;

View file

@ -1,5 +1,5 @@
# manages and downloads films
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
let
cfg = config.my.services.radarr;
domain = config.networking.domain;

View file

@ -1,5 +1,5 @@
# manages and downloads series
{ config, lib, pkgs, ... }:
{ config, lib, ... }:
let
cfg = config.my.services.sonarr;
domain = config.networking.domain;