mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
treewide: fix deadnix errors
This commit is contained in:
parent
a36dccb271
commit
46881de8eb
59 changed files with 70 additions and 93 deletions
|
@ -1,6 +1,5 @@
|
|||
# Hardware-related modules
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./bluetooth
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.hardware.drive-monitor;
|
||||
in
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.hardware.firmware;
|
||||
in
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# manages and downloads subtitles
|
||||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.services.bazarr;
|
||||
domain = config.networking.domain;
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.services.blackbox;
|
||||
domain = config.networking.domain;
|
||||
blackBoxConfig = {
|
||||
modules = {
|
||||
http_2xx = {
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.services.blocky;
|
||||
domain = config.networking.domain;
|
||||
in
|
||||
{
|
||||
options.my.services.blocky = with lib; {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# running dyndns updates
|
||||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.services.dyndns;
|
||||
domain = config.networking.domain;
|
||||
|
|
|
@ -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.";
|
||||
})
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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}/" ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# The Free Software Media System
|
||||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.services.initrd-ssh;
|
||||
in
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# manages and downloads films
|
||||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.services.jellyseerr;
|
||||
domain = config.networking.domain;
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.services.loki;
|
||||
domain = config.networking.domain;
|
||||
in
|
||||
{
|
||||
options.my.services.loki = with lib; {
|
||||
|
|
|
@ -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; {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# document management system
|
||||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.services.paperless;
|
||||
domain = config.networking.domain;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# self-hosted photo gallery
|
||||
{ config, pkgs, lib, ... }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.services.photoprism;
|
||||
domain = config.networking.domain;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# # log forwarding
|
||||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.services.promtail;
|
||||
domain = config.networking.domain;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# manages indexes
|
||||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.services.prowlarr;
|
||||
domain = config.networking.domain;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# manages and downloads films
|
||||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.services.radarr;
|
||||
domain = config.networking.domain;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# manages and downloads series
|
||||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.services.sonarr;
|
||||
domain = config.networking.domain;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# avahi related settings
|
||||
{ config, inputs, lib, options, pkgs, ... }:
|
||||
{ config, lib, options, ... }:
|
||||
let
|
||||
cfg = config.my.system.avahi;
|
||||
in
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Docker related settings
|
||||
{ config, inputs, lib, options, pkgs, ... }:
|
||||
{ config, lib, options, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.system.docker;
|
||||
in
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Podman related settings
|
||||
{ config, inputs, lib, options, pkgs, ... }:
|
||||
{ config, lib, options, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.system.podman;
|
||||
in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue