chore: pretty up with alejandra
This commit is contained in:
parent
7bbda6140f
commit
37b85877bb
75 changed files with 584 additions and 452 deletions
|
|
@ -1,6 +1,9 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./flatpak.nix
|
||||
./wireshark.nix
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 = [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue