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