chore(lint): add statix config and remove unused arguments

This commit is contained in:
2026-10-01 11:40:03 +02:00
parent c1d11138b3
commit 4ec579b1fc
44 changed files with 41 additions and 57 deletions
+3 -1
View File
@@ -15,8 +15,10 @@
scripts = {
lint.exec = ''
set -e
statix check .
deadnix --fail .
# hardware-configuration.nix is generated; statix skips it via statix.toml
deadnix --fail --exclude hosts/*/hardware-configuration.nix -- .
'';
fmt.exec = ''
nixfmt $(git ls-files '*.nix')
+1 -1
View File
@@ -17,7 +17,7 @@
};
};
outputs = { self, nixpkgs, home-manager, nixvim, ... }@inputs:
outputs = { nixpkgs, home-manager, nixvim, ... }@inputs:
let
mkHost = hostName: nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
-2
View File
@@ -1,5 +1,3 @@
{ config, pkgs, inputs, ... }:
{
imports = [
../../modules/nixos/appimage.nix
+1 -1
View File
@@ -1,6 +1,6 @@
# 0x29a nixos conifg
{ pkgs, lib, ... }:
{ pkgs, ... }:
{
# use flakes
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
{
# user config
-2
View File
@@ -1,5 +1,3 @@
{ config, pkgs, inputs, ... }:
{
imports = [
../../modules/nixos/appimage.nix
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, pkgs, inputs, ... }:
{ pkgs, ... }:
{
# user fonts
-2
View File
@@ -1,5 +1,3 @@
{ config, pkgs, inputs, ... }:
{
programs.ghostty = {
enable = true;
+2 -2
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, inputs, ... }:
{ config, lib, pkgs, ... }:
let
email = "aaron@0x29a.ch";
@@ -23,7 +23,7 @@ in
push = { autoSetupRemote = true; };
user = {
name = "aaron";
email = email;
inherit email;
};
gpg.ssh.allowedSignersFile = "${config.xdg.configHome}/git/allowed_signers";
};
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, pkgs, inputs, ... }:
{ pkgs, inputs, ... }:
{
programs.nixvim = {
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, pkgs, inputs, ... }:
{ pkgs, inputs, ... }:
{
# Noctalia v5 shell, managed via home-manager's built-in programs.noctalia module.
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, pkgs, inputs, ... }:
{ config, pkgs, ... }:
{
# user packages
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, inputs, ... }:
{ lib, ... }:
{
# configure z-shell to use omz with some plugins
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, pkgs, inputs, ... }:
{ pkgs, ... }:
{
# set gtk theme
-2
View File
@@ -1,5 +1,3 @@
{ config, pkgs, inputs, ... }:
let
# Powerline separators, U+E0B0..U+E0B3.
#
-2
View File
@@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
# AppImages ship a squashfs payload that the bundled runtime mounts through
# libfuse.so.2 at startup. nix-ld resolves the ELF interpreter but not that
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
let
# Siril's Python plugins (sirilpy) run in a venv that pip-installs foreign
-2
View File
@@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
# enable sound through pipewire
services.pipewire = {
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ pkgs, ... }:
{
# set bootloader to systemd
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ pkgs, ... }:
{
# install calibre for ebook management and kobo syncing
-2
View File
@@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
let
caddyRootCA = ''
-----BEGIN CERTIFICATE-----
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ...}:
{ pkgs, ...}:
{
# add docker group to user
-2
View File
@@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
# Add encrypted drives to argon
{
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, pkgs, ... }:
{
# enable gnupg agent
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ pkgs, ... }:
{
# install gnuradio companion along with it's osmocom library
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ pkgs, ... }:
{
# enable amd GPU acceleration (mesa, vulkan, egl)
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ pkgs, ... }:
{
# greetd display manager with tuigreet
-2
View File
@@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
# set the time zone
time.timeZone = "Europe/Zurich";
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ pkgs, ... }:
{
# user networkmanager
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ pkgs, ... }:
{
# just enable and install niri
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, inputs, ... }:
{ pkgs, inputs, ... }:
{
# install noctalia and helper packages
environment.systemPackages = with pkgs; [
-2
View File
@@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
# enable the openssh daemon
services.openssh = {
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ pkgs, ... }:
{
# system packages
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ pkgs, ... }:
{
# protonvpn uses wireguard tunnels, which break strict reverse path filtering
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ pkgs, ... }:
{
# enable sddm and use astronaut theme
-2
View File
@@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
# list of enabled services on the system
services = {
-2
View File
@@ -1,5 +1,3 @@
{ config, lib, pkgs, ... }:
{
nix = {
# nix settings
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ pkgs, ... }:
{
# enable steam and open firewall
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ pkgs, ... }:
{
# Enable Thunar
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ pkgs, ... }:
{
# create users
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ pkgs, ... }:
{
# Vial-capable keyboards (lily58 pro r2g) expose a second, non-keyboard raw
+8
View File
@@ -0,0 +1,8 @@
# statix configuration (run via `lint` in the devenv)
# Flat assignments like `boot.loader = ...; boot.plymouth = ...;` are the
# preferred style in this repo, so don't ask for them to be merged.
disabled = [ "repeated_keys" ]
# Generated by nixos-generate-config, not maintained by hand.
ignore = [ "hosts/*/hardware-configuration.nix" ]
-2
View File
@@ -1,5 +1,3 @@
{ config, pkgs, ... }:
{
imports = [
../../modules/home-manager/fonts.nix