1
0
Fork 0

Apply nil lints

This commit is contained in:
Malte 2023-05-22 03:44:51 +02:00
parent b366214193
commit cb87eb1c80
32 changed files with 34 additions and 40 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
with lib; {
config = {
m-0.monitoring = [

View file

@ -1,4 +1,4 @@
{ inputs, config, ... }: {
{ inputs, ... }: {
imports = [
inputs.pre-commit-hooks.flakeModule
./nixos/flake-module.nix
@ -34,7 +34,11 @@
hooks = {
hlint.enable = true;
nixfmt.enable = true;
#nil.enable = true;
nil = {
enable = true;
excludes =
[ "packages/.*/default\\.nix" "hardware-configuration\\.nix" ];
};
#editorconfig-checker.enable = true;
#deadnix.enable = true;
statix.enable = true;

View file

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }:
{ pkgs, ... }:
let
battery-watch = pkgs.writeHaskellScript {
name = "battery-watch";

View file

@ -1,4 +1,4 @@
{ pkgs, config, lib, ... }: {
{ pkgs, config, ... }: {
imports = [
./zsh
./home-options.nix

View file

@ -1,4 +1,4 @@
{ pkgs, config, ... }:
{ pkgs, ... }:
let
simpleDesktopItem = name: command:
pkgs.makeDesktopItem {

View file

@ -1 +1 @@
{ pkgs, ... }: { services.gpg-agent.pinentryFlavor = "curses"; }
{ services.gpg-agent.pinentryFlavor = "curses"; }

View file

@ -1,4 +1,4 @@
{ pkgs, config, ... }:
{ pkgs, ... }:
let
language-servers = {
inherit (pkgs.nodePackages)

View file

@ -6,7 +6,7 @@ let
mail = "";
alternates = [ ];
} "mail/me")
gpg name mail alternates;
gpg name alternates;
quick-mail-sync = pkgs.writeShellScriptBin "quick-mail-sync" ''
${pkgs.isync}/bin/mbsync hera:INBOX,Code
${pkgs.notmuch}/bin/notmuch new

View file

@ -1,5 +1,4 @@
{ config, pkgs, lib, ... }:
with lib;
{ config, pkgs, ... }:
let inherit (config.lib) dag;
in {
home.activation.report-changes = dag.entryAnywhere ''

View file

@ -1,4 +1,4 @@
{ pkgs, config, lib, ... }: {
{
home = {
username = "maralorn";
homeDirectory = "/home/maralorn";

View file

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }: {
{ pkgs, ... }: {
home.packages = [ pkgs.taskwarrior-git ];
home.file = {
"add-git" = {

View file

@ -1,5 +1,4 @@
{ lib, pkgs, config, ... }:
with lib;
let
weechat = pkgs.wrapWeechat pkgs.weechat-unwrapped {
configure = { availablePlugins, ... }: {

View file

@ -1,9 +1,6 @@
flake-inputs:
{ config, pkgs, lib, ... }:
let
wireguard = import ../../../common/wireguard.nix;
inherit (config.m-0) hosts;
localAddress = "fdc0:1::2";
let localAddress = "fdc0:1::2";
in {
imports = [
(import ../../roles/home-assistant flake-inputs)

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: {
{
m-0.server.initSSHKey = "/var/boot-ssh-key";
boot = {

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ pkgs, ... }:
let
locations."/".extraConfig =
"return 301 https://blog.maralorn.de$request_uri;";

View file

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

View file

@ -1,4 +1,3 @@
{ lib, config, ... }:
let secretsFile = "/var/lib/luks-secret/key";
in {
boot = {

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, ... }: {
{ pkgs, config, ... }: {
services.mysql = {
enable = true;
package = pkgs.mariadb;

View file

@ -1,6 +1,4 @@
{ pkgs, config, ... }: {
#imports = [ modules/go-neb.nix ];
{ pkgs, ... }: {
services.go-neb = {
enable = true;
baseUrl = "http://localhost";

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, ... }:
{ pkgs, lib, ... }:
let
path = [ pkgs.git pkgs.nix pkgs.gnutar pkgs.gzip pkgs.openssh pkgs.laminar ];
mkJob = name:

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, ... }:
{ pkgs, lib, ... }:
let
bins = lib.attrValues {
inherit (pkgs) git nix gnutar xz gzip openssh laminar builders-configurator;

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, ... }:
{ pkgs, lib, ... }:
let
hostname = "lists.maralorn.de";
lists = pkgs.privateValue { } "mail/lists";

View file

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

View file

@ -1,6 +1,6 @@
{ pkgs, config, lib, ... }:
let
inherit (config.m-0) privateListenAddresses virtualHosts;
inherit (config.m-0) virtualHosts;
address = "[::1]:8100";
in {
services = {

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: {
{ config, ... }: {
services = {
prometheus = {
alertmanagers =

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, ... }:
let
commonOptions = {
enableACME = true;

View file

@ -1,4 +1,4 @@
{ pkgs, lib, utils, ... }:
{ pkgs, lib, ... }:
let
heading = name: link: ''<h2><a href=\"${link}\">${name}</a></h2>'';
badge = src: link: ''<a href=\"${link}\">\n <img src=\"${src}\">\n</a>'';

View file

@ -1,4 +1,3 @@
{ config, ... }:
let
makeProbe = module: targets: {
job_name = "blackbox ${module}";

View file

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

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
with lib; {
options = { m-0.server.initSSHKey = mkOption { type = types.path; }; };

View file

@ -1,4 +1,4 @@
{ lib, config, ... }: {
{ config, ... }: {
services.unbound = {
resolveLocalQueries = false;
enable = true;

View file

@ -2,8 +2,7 @@
let
stable-pkgs = inputs.nixos-stable.legacyPackages.x86_64-linux;
unstable-pkgs = inputs.nixos-unstable.legacyPackages.x86_64-linux;
inherit (unstable-pkgs.haskell.lib.compose)
appendPatch overrideCabal dontHaddock;
inherit (unstable-pkgs.haskell.lib.compose) overrideCabal;
includePatterns = [ ".hs" ".cabal" "LICENSE" "default.nix" "CHANGELOG.md" ];
cleanCabalPackage =
{ name, source, extraPatterns ? [ ], overrides ? _: { }, }: