From 09b5328d1ca7ccb291e9717bc8d1689518f92af1 Mon Sep 17 00:00:00 2001 From: Grisha Shipunov Date: Sun, 26 Jan 2025 14:16:47 +0100 Subject: [PATCH] deadnix --- .treefmt.toml | 5 +++++ flake.nix | 3 --- hosts/cloud/proxy/default.nix | 2 +- hosts/minime/configuration.nix | 3 --- hosts/minime/hardware-configuration.nix | 1 - hosts/minime/zfs.nix | 2 -- hosts/radicale/radicale.nix | 2 +- hosts/toaster/amd.nix | 2 +- hosts/toaster/default.nix | 2 +- hosts/toaster/hardware-configuration.nix | 1 - hosts/toaster/network/mullvad.nix | 2 +- hosts/toaster/zfs.nix | 2 -- modules/basic-tools/nix-ld.nix | 2 +- modules/chromium.nix | 2 +- modules/devtools.nix | 2 +- modules/dvb-dump-nfs-automount.nix | 2 +- modules/gnupg.nix | 2 +- modules/radio.nix | 2 +- modules/science.nix | 2 +- modules/tlp.nix | 2 +- modules/virtualization.nix | 2 -- modules/wg/module.nix | 2 +- treefmt.toml | 3 --- 23 files changed, 19 insertions(+), 31 deletions(-) create mode 100644 .treefmt.toml delete mode 100644 treefmt.toml diff --git a/.treefmt.toml b/.treefmt.toml new file mode 100644 index 0000000..79732ed --- /dev/null +++ b/.treefmt.toml @@ -0,0 +1,5 @@ +excludes = [ "*.toml", "*.yaml", "*.gitignore", "*.lock", "*mbsyncrc" ] + +[formatter.nixfmt-rfc-style] +command = "nixfmt" +includes = "*.nix" diff --git a/flake.nix b/flake.nix index a7a4ce4..8c112fa 100644 --- a/flake.nix +++ b/flake.nix @@ -43,15 +43,12 @@ outputs = inputs@{ - self, authentik-nix, - flake-utils, lanzaboote, lix-module, microvm, nixos-hardware, nixpkgs, - nixpkgs-unstable, sops-nix, ... }: diff --git a/hosts/cloud/proxy/default.nix b/hosts/cloud/proxy/default.nix index 66ccb29..c225ce3 100644 --- a/hosts/cloud/proxy/default.nix +++ b/hosts/cloud/proxy/default.nix @@ -1,4 +1,4 @@ -{ config, ... }: +{ ... }: { imports = [ ./auth.nix diff --git a/hosts/minime/configuration.nix b/hosts/minime/configuration.nix index bb77eaf..a5adb0b 100644 --- a/hosts/minime/configuration.nix +++ b/hosts/minime/configuration.nix @@ -3,9 +3,6 @@ # https://search.nixos.org/options and in the NixOS manual (`nixos-help`). { - config, - lib, - pkgs, ... }: diff --git a/hosts/minime/hardware-configuration.nix b/hosts/minime/hardware-configuration.nix index ae2a528..ab2f88b 100644 --- a/hosts/minime/hardware-configuration.nix +++ b/hosts/minime/hardware-configuration.nix @@ -4,7 +4,6 @@ { config, lib, - pkgs, modulesPath, ... }: diff --git a/hosts/minime/zfs.nix b/hosts/minime/zfs.nix index 6941995..bcc27bb 100644 --- a/hosts/minime/zfs.nix +++ b/hosts/minime/zfs.nix @@ -1,7 +1,5 @@ { pkgs, - lib, - config, ... }: { diff --git a/hosts/radicale/radicale.nix b/hosts/radicale/radicale.nix index e69b1b5..c200013 100644 --- a/hosts/radicale/radicale.nix +++ b/hosts/radicale/radicale.nix @@ -1,4 +1,4 @@ -{ config, ... }: +{ ... }: { services.radicale = { enable = true; diff --git a/hosts/toaster/amd.nix b/hosts/toaster/amd.nix index 637f15d..b58784f 100644 --- a/hosts/toaster/amd.nix +++ b/hosts/toaster/amd.nix @@ -1,4 +1,4 @@ -{ pkgs, config, ... }: +{ ... }: { boot.initrd.kernelModules = [ "amdgpu" ]; diff --git a/hosts/toaster/default.nix b/hosts/toaster/default.nix index f3afe11..b3e0d38 100644 --- a/hosts/toaster/default.nix +++ b/hosts/toaster/default.nix @@ -1,4 +1,4 @@ -{ pkgs, config, ... }: +{ config, ... }: { imports = [ ./amd.nix diff --git a/hosts/toaster/hardware-configuration.nix b/hosts/toaster/hardware-configuration.nix index 69ebb66..1b0fbb0 100644 --- a/hosts/toaster/hardware-configuration.nix +++ b/hosts/toaster/hardware-configuration.nix @@ -4,7 +4,6 @@ { config, lib, - pkgs, modulesPath, ... }: diff --git a/hosts/toaster/network/mullvad.nix b/hosts/toaster/network/mullvad.nix index 66667b3..7c20818 100644 --- a/hosts/toaster/network/mullvad.nix +++ b/hosts/toaster/network/mullvad.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ config, ... }: { systemd.network = let diff --git a/hosts/toaster/zfs.nix b/hosts/toaster/zfs.nix index 577e4d6..70cc5c9 100644 --- a/hosts/toaster/zfs.nix +++ b/hosts/toaster/zfs.nix @@ -1,7 +1,5 @@ { pkgs, - lib, - config, ... }: { diff --git a/modules/basic-tools/nix-ld.nix b/modules/basic-tools/nix-ld.nix index d9abd55..d464fcf 100644 --- a/modules/basic-tools/nix-ld.nix +++ b/modules/basic-tools/nix-ld.nix @@ -1,4 +1,4 @@ -{ pkgs, lib, ... }: +{ pkgs, ... }: { programs.nix-ld = { enable = true; diff --git a/modules/chromium.nix b/modules/chromium.nix index 0c9bc40..270a52b 100644 --- a/modules/chromium.nix +++ b/modules/chromium.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ pkgs, ... }: { environment.systemPackages = with pkgs; [ diff --git a/modules/devtools.nix b/modules/devtools.nix index bfb0905..8901e49 100644 --- a/modules/devtools.nix +++ b/modules/devtools.nix @@ -1,4 +1,4 @@ -{ pkgs, inputs, ... }: +{ pkgs, ... }: { environment.systemPackages = diff --git a/modules/dvb-dump-nfs-automount.nix b/modules/dvb-dump-nfs-automount.nix index fbc6a8f..313d782 100644 --- a/modules/dvb-dump-nfs-automount.nix +++ b/modules/dvb-dump-nfs-automount.nix @@ -1,4 +1,4 @@ -{ pkgs, lib, ... }: +{ pkgs, ... }: { environment.systemPackages = with pkgs; [ nfs-utils ]; diff --git a/modules/gnupg.nix b/modules/gnupg.nix index a2a2f45..07b1eef 100644 --- a/modules/gnupg.nix +++ b/modules/gnupg.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ pkgs, ... }: { environment.systemPackages = with pkgs; [ diff --git a/modules/radio.nix b/modules/radio.nix index 7df20bf..391e98b 100644 --- a/modules/radio.nix +++ b/modules/radio.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ pkgs, ... }: { environment.systemPackages = with pkgs; [ diff --git a/modules/science.nix b/modules/science.nix index 552cbe0..f937945 100644 --- a/modules/science.nix +++ b/modules/science.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ pkgs, ... }: { environment.systemPackages = with pkgs; [ gnuplot diff --git a/modules/tlp.nix b/modules/tlp.nix index ad3d743..0265110 100644 --- a/modules/tlp.nix +++ b/modules/tlp.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ ... }: { powerManagement.cpuFreqGovernor = null; diff --git a/modules/virtualization.nix b/modules/virtualization.nix index b61cc4f..5a9e577 100644 --- a/modules/virtualization.nix +++ b/modules/virtualization.nix @@ -1,7 +1,5 @@ { - config, pkgs, - inputs, ... }: { diff --git a/modules/wg/module.nix b/modules/wg/module.nix index 4f53ab7..1bb6f41 100644 --- a/modules/wg/module.nix +++ b/modules/wg/module.nix @@ -70,7 +70,7 @@ netdev-client = builtins.listToAttrs netdev-client-list; maskip = ( - net: hostattrs: + _net: hostattrs: if hostattrs.endpoint.enable then hostattrs.address else diff --git a/treefmt.toml b/treefmt.toml deleted file mode 100644 index 2fb777a..0000000 --- a/treefmt.toml +++ /dev/null @@ -1,3 +0,0 @@ -[formatter.nixfmt-rfc-style] -command = "nixfmt" -includes = "*.nix"