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

@ -20,13 +20,14 @@
# settings.general.framerate = 120;
# settings.input.method = "pulse";
# };
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.home.cava;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.home.cava;
in {
options.nyx-module.home.cava = {
enable = lib.mkEnableOption "Enable CAVA (home) module";
@ -42,7 +43,7 @@ in
};
};
description = ''
Declarative CAVA settings, written to `~/.config/cava/config`.
Declarative CAVA settings, written to `~/.config/cava/config`.
Ignored if `configText` is set.
'';
example = {
@ -56,7 +57,7 @@ in
type = lib.types.nullOr lib.types.lines;
default = null;
description = ''
Raw CAVA configuration file contents.
Raw CAVA configuration file contents.
If set, overrides `settings` and is written directly to `~/.config/cava/config`.
'';
example = ''
@ -64,7 +65,7 @@ in
framerate = 120
[input]
method = pulse
'';
'';
};
};
@ -73,11 +74,9 @@ in
enable = true;
package = pkgs.cava;
settings = lib.mkIf (cfg.configText == null) cfg.settings;
};
xdg.configFile."cava/config" = lib.mkIf (cfg.configText != null) {
text = cfg.configText;
};

View file

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

View file

@ -7,13 +7,14 @@
# Notes:
# - Installs into home.packages
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.home.spotify;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.home.spotify;
in {
options.nyx-module.home.spotify = {
enable = lib.mkEnableOption "Enable Spotify (home) module";
@ -30,6 +31,6 @@ in
};
config = lib.mkIf cfg.enable {
home.packages = [ cfg.package ];
home.packages = [cfg.package];
};
}

View file

@ -7,13 +7,14 @@
# Notes:
# - You can override the GUI package with another (e.g., cheese, kamoso)
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.home.camera;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.home.camera;
in {
options.nyx-module.home.camera = {
enable = lib.mkEnableOption "Enable camera (home) module";

View file

@ -1,6 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}: {
imports = [
./camera.nix
];

View file

@ -1,6 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}: {
imports = [
./image-viewer.nix
./krita.nix

View file

@ -6,13 +6,14 @@
# Notes:
# - Defaults to Gwenview
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.home.image-viewer;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.home.image-viewer;
in {
options.nyx-module.home.image-viewer = {
enable = lib.mkEnableOption "Enable image viewer (home module)";
@ -25,6 +26,6 @@ in
};
config = lib.mkIf cfg.enable {
home.packages = [ cfg.package ];
home.packages = [cfg.package];
};
}

View file

@ -6,13 +6,14 @@
# Notes:
# - Installed via home.packages
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.home.krita;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.home.krita;
in {
options.nyx-module.home.krita = {
enable = lib.mkEnableOption "Enable Krita (home) module";
};

View file

@ -1,6 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}: {
imports = [
./kdenlive.nix
./video-player.nix

View file

@ -9,13 +9,14 @@
# * pkgs.kdePackages.kdenlive (preferred, modern KDE split)
# * pkgs.libsForQt5.kdenlive (older releases, fallback)
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.home.kdenlive;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.home.kdenlive;
in {
options.nyx-module.home.kdenlive = {
enable = lib.mkEnableOption "Enable Kdenlive (home) module";
};

View file

@ -6,20 +6,21 @@
# Notes:
# - Defaults to [ vlc ]
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.home.video-player;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.home.video-player;
in {
options.nyx-module.home.video-player = {
enable = lib.mkEnableOption "Enable video players (home module)";
packages = lib.mkOption {
type = lib.types.listOf lib.types.package;
default = [ pkgs.vlc ];
example = [ pkgs.vlc pkgs.mpv pkgs.celluloid ];
default = [pkgs.vlc];
example = [pkgs.vlc pkgs.mpv pkgs.celluloid];
description = "List of video/media players to install (e.g. vlc, mpv, celluloid).";
};
};
@ -28,12 +29,11 @@ in
home.packages = cfg.packages;
};
}
##########
# Example
##########
# nyx-module.home.video-player = {
# enable = true;
# packages = [ pkgs.vlc pkgs.mpv ];
# };

View file

@ -9,13 +9,14 @@
# Notes:
# - Installed via home.packages
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.home.zoom;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.home.zoom;
in {
options.nyx-module.home.zoom = {
enable = lib.mkEnableOption "Enable Zoom (home) module";
@ -27,6 +28,6 @@ in
};
config = lib.mkIf cfg.enable {
home.packages = [ cfg.package ];
home.packages = [cfg.package];
};
}

View file

@ -1,6 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}: {
imports = [
./Audio
./Capture