chore: pretty up with alejandra

This commit is contained in:
Peritia 2025-09-22 16:16:02 +02:00
parent 7bbda6140f
commit 37b85877bb
75 changed files with 584 additions and 452 deletions

View file

@ -1,6 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}: {
imports = [
./flatpak.nix
./wireshark.nix

View file

@ -8,12 +8,14 @@
# Options:
# - enable → Enable Flatpak system module
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.system.flatpak;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.system.flatpak;
in {
options.nyx-module.system.flatpak = {
enable = lib.mkEnableOption "Enable Flatpak (system module)";
};
@ -25,12 +27,12 @@ in
xdg.portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk # For GTK desktops
xdg-desktop-portal-gtk # For GTK desktops
# xdg-desktop-portal-kde # Uncomment for KDE Plasma
];
};
# Optional explicit installation (not strictly needed)
environment.systemPackages = [ pkgs.flatpak ];
environment.systemPackages = [pkgs.flatpak];
};
}

View file

@ -9,13 +9,14 @@
# - enable → Enable Wireshark system module
# - username → User to add to the wireshark group (required)
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.system.wireshark;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.system.wireshark;
in {
options.nyx-module.system.wireshark = {
enable = lib.mkEnableOption "Enable Wireshark (system module)";
@ -27,15 +28,15 @@ in
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [ pkgs.wireshark ];
environment.systemPackages = [pkgs.wireshark];
programs.wireshark = {
enable = true; # Installs wireshark + sets dumpcap caps
enable = true; # Installs wireshark + sets dumpcap caps
package = pkgs.wireshark;
};
# Add user to wireshark group
users.users.${cfg.username}.extraGroups = [ "wireshark" ];
users.users.${cfg.username}.extraGroups = ["wireshark"];
assertions = [
{