Normalize Nix module formatting and update flake.lock

Consistently format module argument blocks and convert aligned
package comments to inline comments. Trim trailing whitespace and
minor layout tweaks across modules. Bump opencode rev, narHash and
lastModified in flake.lock and remove the original dev ref.
This commit is contained in:
Melvin Ragusa
2026-02-02 18:08:01 +01:00
parent 265421b015
commit 2505298449
12 changed files with 212 additions and 141 deletions

7
flake.lock generated
View File

@@ -275,16 +275,15 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1770050462, "lastModified": 1770051391,
"narHash": "sha256-SvIR3FrTRJE77C0JUowvItVqX/GBm830hXziN8KgHeU=", "narHash": "sha256-Z8DdRW3NCdzAlgF3xgjZCIU4MRCPCEv3wPZTsxVcQuk=",
"owner": "anomalyco", "owner": "anomalyco",
"repo": "opencode", "repo": "opencode",
"rev": "cf8b033be1cbe9f20bc0921d9920a66c0d95c704", "rev": "cf828fff85b50baf8c57cc3811c8789d9adbcae2",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "anomalyco", "owner": "anomalyco",
"ref": "dev",
"repo": "opencode", "repo": "opencode",
"type": "github" "type": "github"
} }

View File

@@ -1,6 +1,11 @@
# modules/apps.nix # modules/apps.nix
# User applications: media, productivity, communication, system utilities # User applications: media, productivity, communication, system utilities
{ config, pkgs, lib, ... }: {
config,
pkgs,
lib,
...
}:
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [

View File

@@ -1,6 +1,11 @@
# modules/audio.nix # modules/audio.nix
# Audio and Bluetooth configuration: Blueman GUI, volume control, media keys # Audio and Bluetooth configuration: Blueman GUI, volume control, media keys
{ config, pkgs, lib, ... }: {
config,
pkgs,
lib,
...
}:
{ {
# Bluetooth GUI management # Bluetooth GUI management
@@ -34,10 +39,26 @@
"bluez5.enable-hw-volume" = true; "bluez5.enable-hw-volume" = true;
# Bluetooth headset roles # Bluetooth headset roles
"bluez5.roles" = [ "a2dp_sink" "a2dp_source" "bap_sink" "bap_source" "hsp_hs" "hsp_ag" "hfp_hf" "hfp_ag" ]; "bluez5.roles" = [
"a2dp_sink"
"a2dp_source"
"bap_sink"
"bap_source"
"hsp_hs"
"hsp_ag"
"hfp_hf"
"hfp_ag"
];
# Codec preference order (highest quality first) # Codec preference order (highest quality first)
"bluez5.codecs" = [ "ldac" "aac" "aptx_hd" "aptx" "sbc_xq" "sbc" ]; "bluez5.codecs" = [
"ldac"
"aac"
"aptx_hd"
"aptx"
"sbc_xq"
"sbc"
];
}; };
}; };
}; };

View File

@@ -1,6 +1,12 @@
# modules/desktop.nix # modules/desktop.nix
# Core desktop infrastructure: portals, polkit, launcher, screen lock, wallpaper, idle # Core desktop infrastructure: portals, polkit, launcher, screen lock, wallpaper, idle
{ config, pkgs, inputs, lib, ... }: {
config,
pkgs,
inputs,
lib,
...
}:
{ {
# XDG Portal - Required for screen sharing, file pickers, etc. # XDG Portal - Required for screen sharing, file pickers, etc.

View File

@@ -1,6 +1,11 @@
# modules/dev.nix # modules/dev.nix
# Development tools: Docker, Node.js, direnv, build tools # Development tools: Docker, Node.js, direnv, build tools
{ config, pkgs, lib, ... }: {
config,
pkgs,
lib,
...
}:
{ {
# Docker # Docker
@@ -60,7 +65,7 @@
# Editors & LSP # Editors & LSP
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
# nil already in base config (Nix LSP) # nil already in base config (Nix LSP)
nixfmt-rfc-style # Nix formatter nixfmt # Nix formatter
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
# CLI Utilities # CLI Utilities

View File

@@ -1,6 +1,11 @@
# modules/gaming.nix # modules/gaming.nix
# Full gaming setup: Steam, Gamemode, Lutris, Heroic, Wine, Proton # Full gaming setup: Steam, Gamemode, Lutris, Heroic, Wine, Proton
{ config, pkgs, lib, ... }: {
config,
pkgs,
lib,
...
}:
{ {
# Steam # Steam

View File

@@ -1,6 +1,11 @@
# modules/gpu-amd.nix # modules/gpu-amd.nix
# AMD GPU configuration: drivers, Vulkan, VA-API hardware acceleration, CoreCtrl # AMD GPU configuration: drivers, Vulkan, VA-API hardware acceleration, CoreCtrl
{ config, pkgs, lib, ... }: {
config,
pkgs,
lib,
...
}:
{ {
# Enable OpenGL/Vulkan # Enable OpenGL/Vulkan

View File

@@ -1,6 +1,11 @@
# modules/navidrome.nix # modules/navidrome.nix
# Self-hosted music streaming server # Self-hosted music streaming server
{ config, pkgs, lib, ... }: {
config,
pkgs,
lib,
...
}:
{ {
# ═══════════════════════════════════════════════════════════════ # ═══════════════════════════════════════════════════════════════

View File

@@ -1,6 +1,11 @@
# modules/power.nix # modules/power.nix
# Power management for desktop: CPU governor control, power profiles # Power management for desktop: CPU governor control, power profiles
{ config, pkgs, lib, ... }: {
config,
pkgs,
lib,
...
}:
{ {
# ═══════════════════════════════════════════════════════════════ # ═══════════════════════════════════════════════════════════════

View File

@@ -1,6 +1,11 @@
# modules/services.nix # modules/services.nix
# System services: SSD maintenance, swap, mDNS, profile sync # System services: SSD maintenance, swap, mDNS, profile sync
{ config, pkgs, lib, ... }: {
config,
pkgs,
lib,
...
}:
{ {
# ═══════════════════════════════════════════════════════════════ # ═══════════════════════════════════════════════════════════════

View File

@@ -1,6 +1,11 @@
# modules/shell.nix # modules/shell.nix
# Fish shell configuration with plugins and aliases # Fish shell configuration with plugins and aliases
{ config, pkgs, lib, ... }: {
config,
pkgs,
lib,
...
}:
{ {
# Enable Fish shell # Enable Fish shell

View File

@@ -1,6 +1,11 @@
# modules/virtualization.nix # modules/virtualization.nix
# Virtual machine support: QEMU, KVM, libvirt, virt-manager # Virtual machine support: QEMU, KVM, libvirt, virt-manager
{ config, pkgs, lib, ... }: {
config,
pkgs,
lib,
...
}:
{ {
# ═══════════════════════════════════════════════════════════════ # ═══════════════════════════════════════════════════════════════