treewide: remove blank lines around 'let', 'in', and function arguments (#1700)

Link: https://github.com/nix-community/stylix/pull/1700

Reviewed-by: awwpotato <awwpotato@voidq.com>
This commit is contained in:
NAHO 2025-07-19 19:41:36 +02:00 committed by GitHub
parent 03699ed214
commit 2e2e96f6b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
60 changed files with 2 additions and 79 deletions

View file

@ -9,7 +9,6 @@
mdbook-alerts,
mdbook-linkcheck,
}:
let
# Prefix to remove from option declaration file paths.
rootPrefix = toString ../. + "/";
@ -654,7 +653,6 @@ let
padding: unset;
}
'';
in
stdenvNoCC.mkDerivation {
name = "stylix-book";

View file

@ -1,5 +1,4 @@
{ lib, pkgs, ... }:
let
package = pkgs.alacritty;
in

View file

@ -1,5 +1,4 @@
{ pkgs, ... }:
{
stylix.testbed.ui = {
graphicalEnvironment = "bspwm";

View file

@ -1,5 +1,4 @@
{ lib, pkgs, ... }:
let
package = pkgs.cavalier;
in

View file

@ -1,5 +1,4 @@
{ pkgs, ... }:
let
package = pkgs.chromium;
in

View file

@ -1,5 +1,4 @@
{ lib, pkgs, ... }:
let
package = pkgs.discord.override {
withVencord = true;

View file

@ -1,5 +1,4 @@
{ pkgs, lib, ... }:
let
package = pkgs.vesktop;
in

View file

@ -1,5 +1,4 @@
{ lib, pkgs, ... }:
let
package = pkgs.emacs;
in

View file

@ -1,5 +1,4 @@
{ lib, pkgs, ... }:
let
package = pkgs.firefox;
profileName = "stylix";

View file

@ -1,5 +1,4 @@
{ lib, pkgs, ... }:
let
package = pkgs.firefox;
profileName = "stylix";

View file

@ -1,5 +1,4 @@
{ lib, pkgs, ... }:
let
package = pkgs.foliate;
in

View file

@ -1,5 +1,4 @@
{ lib, pkgs, ... }:
let
package = pkgs.foot;
in

View file

@ -1,5 +1,4 @@
{ pkgs, ... }:
let
package = pkgs.gedit;
in

View file

@ -1,5 +1,4 @@
{ pkgs, ... }:
let
package = pkgs.gnome-text-editor;
in

View file

@ -4,7 +4,6 @@
lib,
...
}:
let
inherit (config.stylix.fonts) sansSerif serif monospace;
fontSize = toString config.stylix.fonts.sizes.applications;
@ -40,7 +39,6 @@ let
fi
'';
};
in
{
options.stylix.targets.gnome = {

View file

@ -4,13 +4,11 @@
config,
...
}:
let
theme = pkgs.callPackage ./theme.nix {
inherit (config.lib.stylix) colors;
inherit (config.stylix) inputs;
};
in
{
options.stylix.targets.gnome.enable =

View file

@ -5,13 +5,11 @@
colors,
inputs,
}:
let
colorsScss = colors {
template = ./colors.scss.mustache;
extension = ".scss";
};
in
stdenv.mkDerivation {
name = "${colors.slug}-gnome-shell-theme";

View file

@ -4,7 +4,6 @@
lib,
...
}:
let
cfg = config.stylix.targets.grub;
inherit (config.stylix) imageScalingMode fonts;

View file

@ -1,5 +1,4 @@
{ mkTarget, ... }:
mkTarget {
name = "gtksourceview";
humanName = "GTKSourceView";

View file

@ -1,5 +1,4 @@
{ pkgs, lib, ... }:
let
package = pkgs.halloy;
in

View file

@ -1,5 +1,4 @@
{ pkgs, ... }:
{
stylix.testbed.ui = {
graphicalEnvironment = "hyprland";

View file

@ -1,5 +1,4 @@
{ lib, pkgs, ... }:
let
package = pkgs.kitty;
in

View file

@ -1,5 +1,4 @@
{ lib, pkgs, ... }:
{
stylix.testbed.ui.command = {
text = ''

View file

@ -1,5 +1,4 @@
{ lib, pkgs, ... }:
{
stylix.testbed.ui = {
# We use Hyprland because Gnome has its own notification daemon

View file

@ -1,13 +1,10 @@
{ lib, config, ... }:
let
recommendedStyle = {
gnome = if config.stylix.polarity == "dark" then "adwaita-dark" else "adwaita";
kde = "breeze";
qtct = "kvantum";
};
in
{
options.stylix.targets.qt = {

View file

@ -1,5 +1,4 @@
{ lib, pkgs, ... }:
let
package = pkgs.qutebrowser;
in

View file

@ -1,5 +1,4 @@
{ lib, pkgs, ... }:
let
package = pkgs.rio;
in

View file

@ -1,5 +1,4 @@
{ config, lib, ... }:
{
options.stylix.targets.river.enable =
config.lib.stylix.mkEnableTarget "River" true;

View file

@ -1,5 +1,4 @@
{ lib, pkgs, ... }:
let
package = pkgs.nsxiv;
in

View file

@ -5,7 +5,6 @@
lib,
...
}:
mkTarget {
name = "vscode";
humanName = "VSCode";

View file

@ -1,8 +1,4 @@
fonts:
with fonts;
{
fonts: with fonts; {
"workbench.colorTheme" = "Stylix";
"editor.fontFamily" = monospace.name;
"editor.inlayHints.fontFamily" = monospace.name;

View file

@ -1,7 +1,4 @@
colors:
with colors.withHashtag;
{
colors: with colors.withHashtag; {
"$schema" = "vscode://schemas/color-theme";
name = scheme;
type = "dark";

View file

@ -1,5 +1,4 @@
{ lib, pkgs, ... }:
# We are using VSCodium because VSCode is an unfree package
let
package = pkgs.vscodium;

View file

@ -1,5 +1,4 @@
{ lib, pkgs, ... }:
let
package = pkgs.wezterm;
in

View file

@ -1,5 +1,4 @@
{ lib, pkgs, ... }:
let
package = pkgs.wofi;
in

View file

@ -1,9 +1,7 @@
{ lib, pkgs, ... }:
let
package = pkgs.yazi;
in
{
stylix.testbed.ui.application = {
name = "yazi";

View file

@ -1,5 +1,4 @@
{ lib, pkgs, ... }:
let
package = pkgs.zathura;
in

View file

@ -1,5 +1,4 @@
{ haskellPackages, stdenvNoCC }:
let
ghc = haskellPackages.ghcWithPackages (
ps: with ps; [
@ -23,7 +22,6 @@ let
dontInstall = true;
dontFixup = true;
};
in
stdenvNoCC.mkDerivation {
name = "palette-generator";

View file

@ -1,5 +1,4 @@
{ lib }:
# string -> [ path ]
# List include path for either nixos modules or hm modules
platform:

View file

@ -1,5 +1,4 @@
{ lib, config, ... }:
{
options.stylix.cursor = lib.mkOption {
description = ''

View file

@ -3,7 +3,6 @@
config,
...
}:
let
autoload = import ../autoload.nix { inherit lib; } "darwin";
in

View file

@ -1,5 +1,4 @@
{ config, lib, ... }:
{
config = lib.mkIf config.stylix.enable {
environment.etc = config.stylix.generated.fileTree;

View file

@ -1,5 +1,4 @@
{ lib, ... }:
let
autoload = import ../autoload.nix { inherit lib; } "droid";
in

View file

@ -4,7 +4,6 @@
pkgs,
...
}:
let
mkFont =
font:

View file

@ -1,6 +1,5 @@
args:
{ config, lib, ... }:
{
imports = [ (lib.modules.importApply ../palette.nix args) ];

View file

@ -4,7 +4,6 @@
lib,
...
}:
let
cfg = config.stylix.fonts;
@ -25,7 +24,6 @@ let
default = fontName;
};
};
in
{
options.stylix.fonts = {

View file

@ -4,10 +4,8 @@
pkgs,
...
}:
let
cfg = config.stylix.cursor;
in
{
config =

View file

@ -3,7 +3,6 @@
config,
...
}:
let
autoload = import ../autoload.nix { inherit lib; } "hm";
in

View file

@ -1,5 +1,4 @@
{ config, lib, ... }:
let
cfg = config.stylix.iconTheme;
inherit (config.stylix) polarity;

View file

@ -1,5 +1,4 @@
{ config, lib, ... }:
{
config = lib.mkIf config.stylix.enable {
xdg.configFile = config.stylix.generated.fileTree;

View file

@ -5,7 +5,6 @@
pkgs,
...
}:
let
copyModules =
map
@ -171,7 +170,6 @@ let
}
# keep-sorted end
];
in
{
options.stylix.homeManagerIntegration = {

View file

@ -1,5 +1,4 @@
{ lib, ... }:
{
options.stylix.iconTheme = {
enable = lib.mkOption {

View file

@ -1,5 +1,4 @@
{ config, lib, ... }:
{
config = lib.mkIf (config.stylix.enable && config.stylix.cursor != null) {
environment.variables.XCURSOR_SIZE = toString config.stylix.cursor.size;

View file

@ -3,7 +3,6 @@
config,
...
}:
let
autoload = import ../autoload.nix { inherit lib; } "nixos";
in

View file

@ -1,5 +1,4 @@
{ config, lib, ... }:
{
config = lib.mkIf config.stylix.enable {
environment.etc = config.stylix.generated.fileTree;

View file

@ -1,5 +1,4 @@
{ lib, ... }:
{
options.stylix.opacity = {
desktop = lib.mkOption {

View file

@ -5,7 +5,6 @@
options,
...
}:
let
cfg = config.stylix;
opts = options.stylix;

View file

@ -1,5 +1,4 @@
{ config, lib, ... }:
{
options.stylix = {
enable = lib.mkOption {

View file

@ -4,12 +4,10 @@
lib,
modules ? import ./autoload.nix { inherit pkgs lib; },
}:
let
makeTestbed =
name: testbed:
let
system = lib.nixosSystem {
inherit (pkgs) system;

View file

@ -2,7 +2,6 @@
lib,
pkgs,
}:
/**
Creates a minimal configuration to extract the `stylix.testbed.enable` option
value.