style(nixos): suppress cfg order findings #106

Merged
alexion merged 1 commits from natu-nolint-cfg into main 2026-09-26 23:33:45 -04:00
54 changed files with 54 additions and 54 deletions

View File

@@ -4,7 +4,7 @@
... ...
}: }:
let let
cfg = config.guests.actualbudget; cfg = config.guests.actualbudget; # NOLINT(let_order)
dataDir = "/data"; dataDir = "/data";
in in
{ {

View File

@@ -4,7 +4,7 @@
... ...
}: }:
let let
cfg = config.guests.copyparty; cfg = config.guests.copyparty; # NOLINT(let_order)
volumeType = lib.types.submodule { volumeType = lib.types.submodule {
options = { options = {

View File

@@ -4,7 +4,7 @@
... ...
}: }:
let let
cfg = config.guests.homepage; cfg = config.guests.homepage; # NOLINT(let_order)
environmentFile = "/run/secrets/homepage.env"; environmentFile = "/run/secrets/homepage.env";
in in
{ {

View File

@@ -4,7 +4,7 @@
... ...
}: }:
let let
cfg = config.guests.palworld; cfg = config.guests.palworld; # NOLINT(let_order)
steamDir = "/data/steamcmd"; steamDir = "/data/steamcmd";
installDir = "/data/server"; installDir = "/data/server";
stateDir = "/data/state"; stateDir = "/data/state";

View File

@@ -4,7 +4,7 @@
... ...
}: }:
let let
cfg = config.guests.valheim; cfg = config.guests.valheim; # NOLINT(let_order)
steamDir = "/data/steamcmd"; steamDir = "/data/steamcmd";
installDir = "/data/server"; installDir = "/data/server";
stateDir = "/data/state"; stateDir = "/data/state";

View File

@@ -6,7 +6,7 @@
}: }:
# Alacritty as the desktop terminal. # Alacritty as the desktop terminal.
let let
cfg = config.modules.desktop.apps.alacritty; cfg = config.modules.desktop.apps.alacritty; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
in in
{ {

View File

@@ -7,7 +7,7 @@
}: }:
# Firefox as the desktop browser: stock mainline, hardened and de-monetized by policy. # Firefox as the desktop browser: stock mainline, hardened and de-monetized by policy.
let let
cfg = config.modules.desktop.apps.firefox; cfg = config.modules.desktop.apps.firefox; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
firefoxAddons = inputs.firefox-addons.packages.${pkgs.stdenv.hostPlatform.system}; firefoxAddons = inputs.firefox-addons.packages.${pkgs.stdenv.hostPlatform.system};
in in

View File

@@ -6,7 +6,7 @@
}: }:
# Ghostty as the desktop terminal. # Ghostty as the desktop terminal.
let let
cfg = config.modules.desktop.apps.ghostty; cfg = config.modules.desktop.apps.ghostty; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
in in
{ {

View File

@@ -6,7 +6,7 @@
}: }:
# Obsidian as the desktop note-taking vault. # Obsidian as the desktop note-taking vault.
let let
cfg = config.modules.desktop.apps.obsidian; cfg = config.modules.desktop.apps.obsidian; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
in in
{ {

View File

@@ -6,7 +6,7 @@
}: }:
# r2modman, a Thunderstore mod manager. # r2modman, a Thunderstore mod manager.
let let
cfg = config.modules.desktop.apps.r2modman; cfg = config.modules.desktop.apps.r2modman; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
in in
{ {

View File

@@ -6,7 +6,7 @@
}: }:
# Signal desktop messenger. # Signal desktop messenger.
let let
cfg = config.modules.desktop.apps.signal; cfg = config.modules.desktop.apps.signal; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
in in
{ {

View File

@@ -6,7 +6,7 @@
}: }:
# Steam game launcher and runtime integration. # Steam game launcher and runtime integration.
let let
cfg = config.modules.desktop.apps.steam; cfg = config.modules.desktop.apps.steam; # NOLINT(let_order)
in in
{ {
options.modules.desktop.apps.steam.enable = lib.mkEnableOption "Steam game launcher"; options.modules.desktop.apps.steam.enable = lib.mkEnableOption "Steam game launcher";

View File

@@ -6,7 +6,7 @@
}: }:
# Vesktop, a Discord client with Vencord built in. # Vesktop, a Discord client with Vencord built in.
let let
cfg = config.modules.desktop.apps.vencord; cfg = config.modules.desktop.apps.vencord; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
in in
{ {

View File

@@ -1,7 +1,7 @@
{ config, lib, ... }: { config, lib, ... }:
# The desktop aggregator: one flag brings up the whole graphical session. # The desktop aggregator: one flag brings up the whole graphical session.
let let
cfg = config.modules.desktop; cfg = config.modules.desktop; # NOLINT(let_order)
in in
{ {
options.modules.desktop.enable = lib.mkEnableOption "the keyboard-driven Hyprland desktop"; options.modules.desktop.enable = lib.mkEnableOption "the keyboard-driven Hyprland desktop";

View File

@@ -6,7 +6,7 @@
}: }:
# The Hyprland compositor. # The Hyprland compositor.
let let
cfg = config.modules.desktop.session.hyprland; cfg = config.modules.desktop.session.hyprland; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
cursor = config.stylix.cursor; cursor = config.stylix.cursor;

View File

@@ -6,7 +6,7 @@
}: }:
# hypridle: idle-triggered locking and display power management. # hypridle: idle-triggered locking and display power management.
let let
cfg = config.modules.desktop.session.hyprland.hypridle; cfg = config.modules.desktop.session.hyprland.hypridle; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
hyprctl = "${config.programs.hyprland.package}/bin/hyprctl"; hyprctl = "${config.programs.hyprland.package}/bin/hyprctl";

View File

@@ -6,7 +6,7 @@
}: }:
# The lock screen: a hyprlock session-lock surface the compositor owns. # The lock screen: a hyprlock session-lock surface the compositor owns.
let let
cfg = config.modules.desktop.session.hyprland.hyprlock; cfg = config.modules.desktop.session.hyprland.hyprlock; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
# The hyprlock this module installs, used by the lock keybind below. # The hyprlock this module installs, used by the lock keybind below.

View File

@@ -7,7 +7,7 @@
# Text login: greetd running the tuigreet greeter, which starts the session # Text login: greetd running the tuigreet greeter, which starts the session
# through the universal Wayland session manager. # through the universal Wayland session manager.
let let
cfg = config.modules.desktop.session.login; cfg = config.modules.desktop.session.login; # NOLINT(let_order)
in in
{ {
options.modules.desktop.session.login.enable = options.modules.desktop.session.login.enable =

View File

@@ -6,7 +6,7 @@
}: }:
# mako as the notification daemon: toasts, a do-not-disturb mode, and history recall. # mako as the notification daemon: toasts, a do-not-disturb mode, and history recall.
let let
cfg = config.modules.desktop.session.mako; cfg = config.modules.desktop.session.mako; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
makoctl = "${pkgs.mako}/bin/makoctl"; makoctl = "${pkgs.mako}/bin/makoctl";

View File

@@ -1,7 +1,7 @@
{ config, lib, ... }: { config, lib, ... }:
# XDG desktop portal routing for in-app screen sharing and file dialogs. # XDG desktop portal routing for in-app screen sharing and file dialogs.
let let
cfg = config.modules.desktop.session.portals; cfg = config.modules.desktop.session.portals; # NOLINT(let_order)
in in
{ {
options.modules.desktop.session.portals.enable = options.modules.desktop.session.portals.enable =

View File

@@ -6,7 +6,7 @@
}: }:
# rofi as the desktop launcher and dmenu-style menu frontend. # rofi as the desktop launcher and dmenu-style menu frontend.
let let
cfg = config.modules.desktop.session.rofi; cfg = config.modules.desktop.session.rofi; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
# A session menu built on the same themed rofi, so the power actions look # A session menu built on the same themed rofi, so the power actions look

View File

@@ -6,7 +6,7 @@
}: }:
# Waybar: a top status bar reading system state at a glance. # Waybar: a top status bar reading system state at a glance.
let let
cfg = config.modules.desktop.session.waybar; cfg = config.modules.desktop.session.waybar; # NOLINT(let_order)
vpnClient = config.modules.network.vpn-client; vpnClient = config.modules.network.vpn-client;
user = config.user.name; user = config.user.name;

View File

@@ -1,7 +1,7 @@
{ config, lib, ... }: { config, lib, ... }:
# PipeWire as the desktop audio server. # PipeWire as the desktop audio server.
let let
cfg = config.modules.desktop.utilities.audio; cfg = config.modules.desktop.utilities.audio; # NOLINT(let_order)
in in
{ {
options.modules.desktop.utilities.audio.enable = lib.mkEnableOption "the PipeWire audio server"; options.modules.desktop.utilities.audio.enable = lib.mkEnableOption "the PipeWire audio server";

View File

@@ -6,7 +6,7 @@
}: }:
# Clipboard history: cliphist records every copy, picked back through rofi. # Clipboard history: cliphist records every copy, picked back through rofi.
let let
cfg = config.modules.desktop.utilities.clipboard; cfg = config.modules.desktop.utilities.clipboard; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
cliphist = "${pkgs.cliphist}/bin/cliphist"; cliphist = "${pkgs.cliphist}/bin/cliphist";

View File

@@ -6,7 +6,7 @@
}: }:
# SwayOSD: a transient on-screen popup for volume and brightness changes. # SwayOSD: a transient on-screen popup for volume and brightness changes.
let let
cfg = config.modules.desktop.utilities.osd; cfg = config.modules.desktop.utilities.osd; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
in in
{ {

View File

@@ -6,7 +6,7 @@
}: }:
# Keybound screen recording: pick a region, then toggle a video-only capture. # Keybound screen recording: pick a region, then toggle a video-only capture.
let let
cfg = config.modules.desktop.utilities.recording; cfg = config.modules.desktop.utilities.recording; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
slurp = "${pkgs.slurp}/bin/slurp"; slurp = "${pkgs.slurp}/bin/slurp";

View File

@@ -7,7 +7,7 @@
# Keyboard-driven screenshots that open in satty for annotation, then land in # Keyboard-driven screenshots that open in satty for annotation, then land in
# both the clipboard and a dated file. # both the clipboard and a dated file.
let let
cfg = config.modules.desktop.utilities.screenshot; cfg = config.modules.desktop.utilities.screenshot; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
grimblast = "${pkgs.grimblast}/bin/grimblast"; grimblast = "${pkgs.grimblast}/bin/grimblast";

View File

@@ -6,7 +6,7 @@
}: }:
# Nord theming for the graphical layer, driven from one base16 scheme by Stylix. # Nord theming for the graphical layer, driven from one base16 scheme by Stylix.
let let
cfg = config.modules.desktop.utilities.theming; cfg = config.modules.desktop.utilities.theming; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
# A single static Nord wallpaper, drawn as a vertical gradient across the # A single static Nord wallpaper, drawn as a vertical gradient across the

View File

@@ -2,7 +2,7 @@
# Declares the XDG user directories, so a tool that queries them lands in a # Declares the XDG user directories, so a tool that queries them lands in a
# well-known folder a host can relocate from one place. # well-known folder a host can relocate from one place.
let let
cfg = config.modules.desktop.utilities.userdirs; cfg = config.modules.desktop.utilities.userdirs; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
in in
{ {

View File

@@ -1,6 +1,6 @@
{ config, lib, ... }: { config, lib, ... }:
let let
cfg = config.modules.guest; cfg = config.modules.guest; # NOLINT(let_order)
in in
{ {
options.modules.guest.enable = lib.mkEnableOption "nested-guest base configuration"; options.modules.guest.enable = lib.mkEnableOption "nested-guest base configuration";

View File

@@ -4,7 +4,7 @@
... ...
}: }:
let let
cfg = config.modules.host; cfg = config.modules.host; # NOLINT(let_order)
inherit (config) user; inherit (config) user;
hostSecrets = ../secrets + "/${config.networking.hostName}.yaml"; hostSecrets = ../secrets + "/${config.networking.hostName}.yaml";
passwordSecret = "${user.name}-password"; passwordSecret = "${user.name}-password";

View File

@@ -5,7 +5,7 @@
}: }:
# Tools for developing this monorepo. # Tools for developing this monorepo.
let let
cfg = config.modules.monorepo; cfg = config.modules.monorepo; # NOLINT(let_order)
in in
{ {
options.modules.monorepo.enable = lib.mkEnableOption "tools for developing this monorepo"; options.modules.monorepo.enable = lib.mkEnableOption "tools for developing this monorepo";

View File

@@ -6,7 +6,7 @@
}: }:
# SSH on this machine, in both directions. # SSH on this machine, in both directions.
let let
cfg = config.modules.network.ssh; cfg = config.modules.network.ssh; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
inherit (lib) inherit (lib)

View File

@@ -6,7 +6,7 @@
}: }:
# The host networking foundation: per-VLAN bridges over a tagged trunk. # The host networking foundation: per-VLAN bridges over a tagged trunk.
let let
cfg = config.modules.network.vlans; cfg = config.modules.network.vlans; # NOLINT(let_order)
inherit (util) bridgeName; inherit (util) bridgeName;

View File

@@ -4,7 +4,7 @@
... ...
}: }:
let let
cfg = config.modules.network.vpn-client; cfg = config.modules.network.vpn-client; # NOLINT(let_order)
in in
{ {
options.modules.network.vpn-client = { options.modules.network.vpn-client = {

View File

@@ -4,7 +4,7 @@
... ...
}: }:
let let
cfg = config.modules.services.actualbudget; cfg = config.modules.services.actualbudget; # NOLINT(let_order)
in in
{ {
options.modules.services.actualbudget = { options.modules.services.actualbudget = {

View File

@@ -5,7 +5,7 @@
... ...
}: }:
let let
cfg = config.modules.services.copyparty; cfg = config.modules.services.copyparty; # NOLINT(let_order)
volumeType = lib.types.submodule { volumeType = lib.types.submodule {
options = { options = {

View File

@@ -5,7 +5,7 @@
... ...
}: }:
let let
cfg = config.modules.services.homepage; cfg = config.modules.services.homepage; # NOLINT(let_order)
mkRegistryPath = mkRegistryPath =
registryName: host: entry: registryName: host: entry:

View File

@@ -4,7 +4,7 @@
... ...
}: }:
let let
cfg = config.modules.services.navidrome; cfg = config.modules.services.navidrome; # NOLINT(let_order)
in in
{ {
options.modules.services.navidrome = { options.modules.services.navidrome = {

View File

@@ -5,7 +5,7 @@
... ...
}: }:
let let
cfg = config.modules.services.reverse-proxy; cfg = config.modules.services.reverse-proxy; # NOLINT(let_order)
mkRegistryPath = mkRegistryPath =
registryName: host: entry: registryName: host: entry:

View File

@@ -6,7 +6,7 @@
}: }:
# Bazel for the primary user's shell environment. # Bazel for the primary user's shell environment.
let let
cfg = config.modules.shell.bazel; cfg = config.modules.shell.bazel; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
in in
{ {

View File

@@ -5,7 +5,7 @@
}: }:
# direnv for the primary user, configured through home-manager. # direnv for the primary user, configured through home-manager.
let let
cfg = config.modules.shell.direnv; cfg = config.modules.shell.direnv; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
in in
{ {

View File

@@ -6,7 +6,7 @@
}: }:
# fish for the primary user, configured through home-manager. # fish for the primary user, configured through home-manager.
let let
cfg = config.modules.shell.fish; cfg = config.modules.shell.fish; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
shortcuts = lib.attrByPath [ config.networking.hostName ] { } config.registry.shell-shortcut; shortcuts = lib.attrByPath [ config.networking.hostName ] { } config.registry.shell-shortcut;
envVars = lib.attrByPath [ config.networking.hostName ] { } config.registry.env-var; envVars = lib.attrByPath [ config.networking.hostName ] { } config.registry.env-var;

View File

@@ -5,7 +5,7 @@
}: }:
# git for the primary user, configured through home-manager. # git for the primary user, configured through home-manager.
let let
cfg = config.modules.shell.git; cfg = config.modules.shell.git; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
in in
{ {

View File

@@ -6,7 +6,7 @@
}: }:
# gitea-axi for the primary user, installed through its own home-manager module. # gitea-axi for the primary user, installed through its own home-manager module.
let let
cfg = config.modules.shell.gitea-axi; cfg = config.modules.shell.gitea-axi; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
in in
{ {

View File

@@ -6,7 +6,7 @@
}: }:
# Herdr, a terminal multiplexer for coding agents. # Herdr, a terminal multiplexer for coding agents.
let let
cfg = config.modules.shell.herdr; cfg = config.modules.shell.herdr; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
in in
{ {

View File

@@ -7,7 +7,7 @@
}: }:
# Neovim for the primary user, configured declaratively through nixvim. # Neovim for the primary user, configured declaratively through nixvim.
let let
cfg = config.modules.shell.nvim; cfg = config.modules.shell.nvim; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
in in
{ {

View File

@@ -6,7 +6,7 @@
}: }:
# Oh My Pi, installed alongside upstream Pi as the `omp` command. # Oh My Pi, installed alongside upstream Pi as the `omp` command.
let let
cfg = config.modules.shell.omp; cfg = config.modules.shell.omp; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
in in
{ {

View File

@@ -8,7 +8,7 @@
# home-manager, which ships the package and manages global settings. # home-manager, which ships the package and manages global settings.
# The login credential is left unmanaged, so it survives rebuilds. # The login credential is left unmanaged, so it survives rebuilds.
let let
cfg = config.modules.shell.pi; cfg = config.modules.shell.pi; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
piDir = "${config.users.users.${user}.home}/.pi/agent"; piDir = "${config.users.users.${user}.home}/.pi/agent";
vendoredPi = pkgs.pi-coding-agent.overrideAttrs { vendoredPi = pkgs.pi-coding-agent.overrideAttrs {

View File

@@ -6,7 +6,7 @@
}: }:
# Python tools for the primary user's shell environment. # Python tools for the primary user's shell environment.
let let
cfg = config.modules.shell.python; cfg = config.modules.shell.python; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
in in
{ {

View File

@@ -6,7 +6,7 @@
}: }:
# Rust tools for the primary user's shell environment. # Rust tools for the primary user's shell environment.
let let
cfg = config.modules.shell.rust; cfg = config.modules.shell.rust; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
toolchain = pkgs.symlinkJoin { toolchain = pkgs.symlinkJoin {
name = "rust-toolchain"; name = "rust-toolchain";

View File

@@ -6,7 +6,7 @@
# tmux for the primary user, configured through home-manager. # tmux for the primary user, configured through home-manager.
# Settings without a home-manager option are read from ./extra.conf. # Settings without a home-manager option are read from ./extra.conf.
let let
cfg = config.modules.shell.tmux; cfg = config.modules.shell.tmux; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
in in
{ {

View File

@@ -6,7 +6,7 @@
}: }:
# Yazi, a terminal file manager. # Yazi, a terminal file manager.
let let
cfg = config.modules.shell.yazi; cfg = config.modules.shell.yazi; # NOLINT(let_order)
user = config.user.name; user = config.user.name;
in in
{ {

View File

@@ -5,7 +5,7 @@
}: }:
# The host-level ZFS pool import: durable service state a host mounts, never rebuilds. # The host-level ZFS pool import: durable service state a host mounts, never rebuilds.
let let
cfg = config.modules.zfs; cfg = config.modules.zfs; # NOLINT(let_order)
in in
{ {
options.modules.zfs = { options.modules.zfs = {