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:
parent
03699ed214
commit
2e2e96f6b0
60 changed files with 2 additions and 79 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
package = pkgs.alacritty;
|
||||
in
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
stylix.testbed.ui = {
|
||||
graphicalEnvironment = "bspwm";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
package = pkgs.cavalier;
|
||||
in
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
package = pkgs.chromium;
|
||||
in
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
package = pkgs.discord.override {
|
||||
withVencord = true;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
package = pkgs.vesktop;
|
||||
in
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
package = pkgs.emacs;
|
||||
in
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
package = pkgs.firefox;
|
||||
profileName = "stylix";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
package = pkgs.firefox;
|
||||
profileName = "stylix";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
package = pkgs.foliate;
|
||||
in
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
package = pkgs.foot;
|
||||
in
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
package = pkgs.gedit;
|
||||
in
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
package = pkgs.gnome-text-editor;
|
||||
in
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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 =
|
||||
|
|
|
|||
|
|
@ -5,13 +5,11 @@
|
|||
colors,
|
||||
inputs,
|
||||
}:
|
||||
|
||||
let
|
||||
colorsScss = colors {
|
||||
template = ./colors.scss.mustache;
|
||||
extension = ".scss";
|
||||
};
|
||||
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "${colors.slug}-gnome-shell-theme";
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.stylix.targets.grub;
|
||||
inherit (config.stylix) imageScalingMode fonts;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ mkTarget, ... }:
|
||||
|
||||
mkTarget {
|
||||
name = "gtksourceview";
|
||||
humanName = "GTKSourceView";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
package = pkgs.halloy;
|
||||
in
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
stylix.testbed.ui = {
|
||||
graphicalEnvironment = "hyprland";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
package = pkgs.kitty;
|
||||
in
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
stylix.testbed.ui.command = {
|
||||
text = ''
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
stylix.testbed.ui = {
|
||||
# We use Hyprland because Gnome has its own notification daemon
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
package = pkgs.qutebrowser;
|
||||
in
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
package = pkgs.rio;
|
||||
in
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
options.stylix.targets.river.enable =
|
||||
config.lib.stylix.mkEnableTarget "River" true;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
package = pkgs.nsxiv;
|
||||
in
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
mkTarget {
|
||||
name = "vscode";
|
||||
humanName = "VSCode";
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
fonts:
|
||||
|
||||
with fonts;
|
||||
|
||||
{
|
||||
fonts: with fonts; {
|
||||
"workbench.colorTheme" = "Stylix";
|
||||
"editor.fontFamily" = monospace.name;
|
||||
"editor.inlayHints.fontFamily" = monospace.name;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
colors:
|
||||
with colors.withHashtag;
|
||||
|
||||
{
|
||||
colors: with colors.withHashtag; {
|
||||
"$schema" = "vscode://schemas/color-theme";
|
||||
name = scheme;
|
||||
type = "dark";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
# We are using VSCodium because VSCode is an unfree package
|
||||
let
|
||||
package = pkgs.vscodium;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
package = pkgs.wezterm;
|
||||
in
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
package = pkgs.wofi;
|
||||
in
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
package = pkgs.yazi;
|
||||
in
|
||||
|
||||
{
|
||||
stylix.testbed.ui.application = {
|
||||
name = "yazi";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
package = pkgs.zathura;
|
||||
in
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib }:
|
||||
|
||||
# string -> [ path ]
|
||||
# List include path for either nixos modules or hm modules
|
||||
platform:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
{
|
||||
options.stylix.cursor = lib.mkOption {
|
||||
description = ''
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
autoload = import ../autoload.nix { inherit lib; } "darwin";
|
||||
in
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
config = lib.mkIf config.stylix.enable {
|
||||
environment.etc = config.stylix.generated.fileTree;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
autoload = import ../autoload.nix { inherit lib; } "droid";
|
||||
in
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
mkFont =
|
||||
font:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
args:
|
||||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [ (lib.modules.importApply ../palette.nix args) ];
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.stylix.fonts;
|
||||
|
||||
|
|
@ -25,7 +24,6 @@ let
|
|||
default = fontName;
|
||||
};
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
options.stylix.fonts = {
|
||||
|
|
|
|||
|
|
@ -4,10 +4,8 @@
|
|||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.stylix.cursor;
|
||||
|
||||
in
|
||||
{
|
||||
config =
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
autoload = import ../autoload.nix { inherit lib; } "hm";
|
||||
in
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.stylix.iconTheme;
|
||||
inherit (config.stylix) polarity;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
config = lib.mkIf config.stylix.enable {
|
||||
xdg.configFile = config.stylix.generated.fileTree;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
copyModules =
|
||||
map
|
||||
|
|
@ -171,7 +170,6 @@ let
|
|||
}
|
||||
# keep-sorted end
|
||||
];
|
||||
|
||||
in
|
||||
{
|
||||
options.stylix.homeManagerIntegration = {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
options.stylix.iconTheme = {
|
||||
enable = lib.mkOption {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
autoload = import ../autoload.nix { inherit lib; } "nixos";
|
||||
in
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
config = lib.mkIf config.stylix.enable {
|
||||
environment.etc = config.stylix.generated.fileTree;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
options.stylix.opacity = {
|
||||
desktop = lib.mkOption {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
options,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.stylix;
|
||||
opts = options.stylix;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
options.stylix = {
|
||||
enable = lib.mkOption {
|
||||
|
|
|
|||
|
|
@ -4,12 +4,10 @@
|
|||
lib,
|
||||
modules ? import ./autoload.nix { inherit pkgs lib; },
|
||||
}:
|
||||
|
||||
let
|
||||
makeTestbed =
|
||||
name: testbed:
|
||||
let
|
||||
|
||||
system = lib.nixosSystem {
|
||||
inherit (pkgs) system;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
lib,
|
||||
pkgs,
|
||||
}:
|
||||
|
||||
/**
|
||||
Creates a minimal configuration to extract the `stylix.testbed.enable` option
|
||||
value.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue