Format with nixfmt-rfc

This commit is contained in:
DashieTM 2024-08-25 19:10:41 +02:00
parent 8c9f699269
commit a90a9c3a8e
60 changed files with 1756 additions and 1039 deletions

View file

@ -1,4 +1,11 @@
{ lib, config, options, pkgs, ... }: {
{
lib,
config,
options,
pkgs,
...
}:
{
options.mods.ncspot = {
enable = lib.mkOption {
default = false;
@ -7,45 +14,45 @@
description = "Enables ncspot with a config";
};
};
config = lib.mkIf config.mods.ncspot.enable
(lib.optionalAttrs (options ? home.packages) {
config = lib.mkIf config.mods.ncspot.enable (
lib.optionalAttrs (options ? home.packages) {
home.packages = with pkgs; [ ncspot ];
xdg.configFile."ncspot/config.toml".source =
(pkgs.formats.toml { }).generate "ncspot" {
notify = true;
shuffle = true;
cover_max_scale = 2;
initial_screen = "library";
library_tabs = [ "playlists" ];
theme = {
background = "#1a1b26";
primary = "#9aa5ce";
secondary = "#414868";
title = "#9ece6a";
playing = "#7aa2f7";
playing_selected = "#bb9af7";
playing_bg = "#24283b";
highlight = "#c0caf5";
highlight_bg = "#24283b";
error = "#414868";
error_bg = "#f7768e";
statusbar = "#ff9e64";
statusbar_progress = "#7aa2f7";
statusbar_bg = "#1a1b26";
cmdline = "#c0caf5";
cmdline_bg = "#24283b";
search_match = "#f7768e";
};
keybindings = {
"j" = "move left 1";
"k" = "move down 1";
"l" = "move up 1";
";" = "move right 1";
};
notification_format = {
title = "%artists";
body = "%title";
};
xdg.configFile."ncspot/config.toml".source = (pkgs.formats.toml { }).generate "ncspot" {
notify = true;
shuffle = true;
cover_max_scale = 2;
initial_screen = "library";
library_tabs = [ "playlists" ];
theme = {
background = "#1a1b26";
primary = "#9aa5ce";
secondary = "#414868";
title = "#9ece6a";
playing = "#7aa2f7";
playing_selected = "#bb9af7";
playing_bg = "#24283b";
highlight = "#c0caf5";
highlight_bg = "#24283b";
error = "#414868";
error_bg = "#f7768e";
statusbar = "#ff9e64";
statusbar_progress = "#7aa2f7";
statusbar_bg = "#1a1b26";
cmdline = "#c0caf5";
cmdline_bg = "#24283b";
search_match = "#f7768e";
};
});
keybindings = {
"j" = "move left 1";
"k" = "move down 1";
"l" = "move up 1";
";" = "move right 1";
};
notification_format = {
title = "%artists";
body = "%title";
};
};
}
);
}