From 4c61cedf91df40ebc17143d9c2366db428cbb1c3 Mon Sep 17 00:00:00 2001 From: Jakob Lechner Date: Mon, 14 Apr 2025 22:24:51 +0200 Subject: [PATCH] Remove unused code --- flake.nix | 4 ++-- machines/party/hardware-configuration.nix | 2 +- machines/party/services/colorchord.nix | 2 +- machines/raven/configuration.nix | 2 +- machines/raven/hardware-configuration.nix | 2 +- machines/raven/services/colorchord.nix | 2 +- machines/raven/services/grafana.nix | 2 +- machines/raven/services/mailhog.nix | 1 - machines/raven/services/prometheus.nix | 2 +- machines/raven/services/wekan.nix | 2 +- pkgs/default.nix | 2 +- 11 files changed, 11 insertions(+), 12 deletions(-) diff --git a/flake.nix b/flake.nix index 9fa16ad..d7e8011 100644 --- a/flake.nix +++ b/flake.nix @@ -87,7 +87,7 @@ }; apps = lib.mapAttrs - (name: program: { type = "app"; program = toString program; }) + (_name: program: { type = "app"; program = toString program; }) (flake-utils.lib.flattenTree { deploy = lib.recurseIntoAttrs (lib.mapAttrs (hostname: machine: @@ -121,7 +121,7 @@ }); packages = lib.filterAttrs - (n: v: lib.elem system v.meta.platforms) + (_n: v: lib.elem system v.meta.platforms) (flake-utils.lib.flattenTree { inherit (pkgs) fablab; diff --git a/machines/party/hardware-configuration.nix b/machines/party/hardware-configuration.nix index a07aa08..b19150a 100644 --- a/machines/party/hardware-configuration.nix +++ b/machines/party/hardware-configuration.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, modulesPath, ... }: +{ modulesPath, ... }: { imports = [ diff --git a/machines/party/services/colorchord.nix b/machines/party/services/colorchord.nix index 95c87fa..7a3c865 100644 --- a/machines/party/services/colorchord.nix +++ b/machines/party/services/colorchord.nix @@ -1,4 +1,4 @@ -{ inputs, lib, pkgs, ... }: +{ lib, pkgs, ... }: let ledDevices = { kanister = { diff --git a/machines/raven/configuration.nix b/machines/raven/configuration.nix index 95a8014..13b1e8e 100644 --- a/machines/raven/configuration.nix +++ b/machines/raven/configuration.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, ... }: { imports = [ diff --git a/machines/raven/hardware-configuration.nix b/machines/raven/hardware-configuration.nix index 27292cd..21f9c9e 100644 --- a/machines/raven/hardware-configuration.nix +++ b/machines/raven/hardware-configuration.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, modulesPath, ... }: +{ modulesPath, ... }: { imports = [ diff --git a/machines/raven/services/colorchord.nix b/machines/raven/services/colorchord.nix index 7194834..e049464 100644 --- a/machines/raven/services/colorchord.nix +++ b/machines/raven/services/colorchord.nix @@ -1,4 +1,4 @@ -{ inputs, lib, pkgs, ... }: +{ lib, pkgs, ... }: let ledDevices = { workbench-1 = { diff --git a/machines/raven/services/grafana.nix b/machines/raven/services/grafana.nix index 29558c2..52dac83 100644 --- a/machines/raven/services/grafana.nix +++ b/machines/raven/services/grafana.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, ... }: let domain = "grafana.fablab-nea.de"; diff --git a/machines/raven/services/mailhog.nix b/machines/raven/services/mailhog.nix index 8ec4c7b..f86d6a7 100644 --- a/machines/raven/services/mailhog.nix +++ b/machines/raven/services/mailhog.nix @@ -1,4 +1,3 @@ -{ config, ... }: { services.mailhog.enable = true; } diff --git a/machines/raven/services/prometheus.nix b/machines/raven/services/prometheus.nix index 6f5f42f..4ac636b 100644 --- a/machines/raven/services/prometheus.nix +++ b/machines/raven/services/prometheus.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, lib, ... }: let domain = "prometheus.fablab-nea.de"; diff --git a/machines/raven/services/wekan.nix b/machines/raven/services/wekan.nix index ef7848a..6c8d3c5 100644 --- a/machines/raven/services/wekan.nix +++ b/machines/raven/services/wekan.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ lib, pkgs, ... }: let serviceName = "wekan"; databaseName = "wekandb"; diff --git a/pkgs/default.nix b/pkgs/default.nix index f9ac13a..4841d89 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -1,4 +1,4 @@ -final: prev: +_final: prev: let inherit (prev) callPackage recurseIntoAttrs; in