remove all unecessary imports for cleaner code :)

This commit is contained in:
Lillian Violet 2024-10-28 00:17:05 +01:00
parent 441a7dcb60
commit 415903451f
74 changed files with 52 additions and 390 deletions

View file

@ -1,11 +1,4 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
{...}: {
services.pihole = {
enable = true;
hostConfig = {

View file

@ -1,7 +1,6 @@
# This is your system's configuration file.
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
{
inputs,
outputs,
lib,
config,

View file

@ -1,11 +1,4 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
{...}: {
imports = [
./firefox
];

View file

@ -4,7 +4,6 @@
inputs,
outputs,
lib,
config,
pkgs,
...
}: {

View file

@ -4,7 +4,6 @@
{
config,
lib,
pkgs,
modulesPath,
...
}: {

View file

@ -3,8 +3,6 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {

View file

@ -4,7 +4,6 @@
{
config,
lib,
pkgs,
modulesPath,
...
}: {

View file

@ -2,9 +2,7 @@
inputs,
outputs,
lib,
config,
pkgs,
nixpkgs-stable,
...
}: {
imports = [

View file

@ -2,9 +2,7 @@
inputs,
outputs,
lib,
config,
pkgs,
nixpkgs-stable,
...
}: {
imports = [

View file

@ -2,9 +2,7 @@
inputs,
outputs,
lib,
config,
pkgs,
nixpkgs-stable,
...
}: {
imports = [

View file

@ -1,7 +1,5 @@
{
config,
lib,
pkgs,
modulesPath,
...
}: {

View file

@ -1,11 +1,4 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
{pkgs, ...}: {
services.udev.extraRules = ''
KERNEL=="sd[a-z]|sd[a-z][0-9]", ACTION=="add", RUN+="${pkgs.systemd}/bin/systemctl start --no-block external-drive-mount@%k.service"
KERNEL=="sd[a-z]|sd[a-z][0-9]", ACTION=="remove", RUN+="${pkgs.systemd}/bin/systemctl stop --no-block external-drive-mount@%k.service"

View file

@ -2,7 +2,6 @@
inputs,
outputs,
lib,
config,
pkgs,
...
}: {

View file

@ -4,7 +4,6 @@
{
config,
lib,
pkgs,
modulesPath,
...
}: {

View file

@ -1,8 +1,4 @@
{
config,
pkgs,
...
}: {
{pkgs, ...}: {
boot.kernelPatches = [
rec {
name = "compat_uts_machine";

View file

@ -2,9 +2,7 @@
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}: {

View file

@ -1,11 +1,4 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
{...}: {
# You can import other home-manager modules here
imports = [
./package-configs

View file

@ -1,7 +1,4 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...

View file

@ -1,8 +1,4 @@
{
config,
pkgs,
...
}: {
{config, ...}: {
users.users.aria2.group = "aria2";
users.groups.aria2 = {};
users.users.aria2.isSystemUser = true;

View file

@ -1,10 +1,4 @@
{
inputs,
outputs,
config,
pkgs,
...
}: {
{config, ...}: {
users.users.aria2.group = "aria2";
users.groups.aria2 = {};
users.users.aria2.isSystemUser = true;

View file

@ -1,10 +1,4 @@
{
config,
pkgs,
inputs,
lib,
...
}: {
{pkgs, ...}: {
services.nginx = {
enable = true;
virtualHosts = {

View file

@ -2,7 +2,6 @@
config,
pkgs,
inputs,
lib,
...
}: let
# You'll need to edit these values

View file

@ -1,8 +1,4 @@
{
config,
pkgs,
...
}: {
{config, ...}: {
sops.secrets."coturn-auth-secret".mode = "0440";
sops.secrets."coturn-auth-secret".owner = config.users.users.turnserver.name;
users.users.nginx.extraGroups = ["turnserver"];

View file

@ -1,11 +1,4 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
{...}: {
imports = [
./grafana
#./loki

View file

@ -1,8 +1,4 @@
{
config,
pkgs,
...
}: {
{config, ...}: {
# grafana configuration
services.grafana = {
enable = true;

View file

@ -1,8 +1,4 @@
{
config,
pkgs,
...
}: {
{...}: {
services.loki = {
enable = true;
configFile = ./loki.yaml;

View file

@ -1,8 +1,4 @@
{
config,
pkgs,
...
}: {
{...}: {
services.prometheus = {
enable = true;
port = 9001;

View file

@ -1,11 +1,4 @@
{
inputs,
lib,
config,
pkgs,
user,
...
}: {
{config, ...}: {
sops.secrets."grafana-telegraf-key".mode = "0440";
sops.secrets."grafana-telegraf-key".owner = config.users.users.telegraf.name;
services.telegraf = {

View file

@ -1,11 +1,4 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
{...}: {
imports = [
./conduit
./forgejo

View file

@ -1,11 +1,4 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
{pkgs, ...}: {
imports = [];
#sops.secrets."mailpassunhash".mode = "0440";

View file

@ -1,11 +1,4 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
{pkgs, ...}: {
users.users.gotosocial.extraGroups = ["virtualMail"];
services.nginx = {

View file

@ -1,11 +1,4 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
{...}: {
users.users.jellyfin.extraGroups = ["nextcloud" "aria2"];
services.nginx = {

View file

@ -1,11 +1,4 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
{config, ...}: {
sops.secrets."mailpass".mode = "0440";
sops.secrets."mailpass".owner = config.users.users.virtualMail.name;

View file

@ -1,8 +1,4 @@
{
config,
pkgs,
...
}: {
{...}: {
users.users = {
ombi.extraGroups = ["radarr" "sonarr" "aria2" "nextcloud"];
};

View file

@ -1,10 +1,4 @@
{
config,
pkgs,
inputs,
lib,
...
}: {
{pkgs, ...}: {
services.nginx = {
enable = true;
virtualHosts = {

View file

@ -1,8 +1,4 @@
{
config,
pkgs,
...
}: {
{pkgs, ...}: {
services.postgresql = {
# https://nixos.org/manual/nixos/stable/#module-postgresql
package = pkgs.postgresql_16;

View file

@ -1,7 +1,6 @@
{
config,
pkgs,
lib,
...
}: {
# TODO: Figure out how to create packages for some plugins for roundcube!

View file

@ -1,10 +1,8 @@
{
inputs,
outputs,
lib,
config,
pkgs,
pkgs-edge,
...
}: {
imports = [

View file

@ -1,11 +1,4 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
{...}: {
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";

View file

@ -1,8 +1,5 @@
{
inputs,
outputs,
lib,
config,
pkgs,
pkgs-edge,
...