Stylix: Cut the fuck out predefined color schemes support.

This commit is contained in:
Dmitry Voronin 2024-12-29 13:16:52 +03:00
parent 3e3e41a440
commit 69ab1d9ad3
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
3 changed files with 26 additions and 44 deletions

View file

@ -194,21 +194,25 @@
++ (ls ./system); ++ (ls ./system);
specialArgs = specialArgs =
let let
util = import ./lib/Util.nix { inherit lib; };
in
{
inherit
const
__findFile
inputs
self
poetry2nixJobber
util
;
pkgsJobber = nixpkgsJobber.legacyPackages.${system}.pkgs; pkgsJobber = nixpkgsJobber.legacyPackages.${system}.pkgs;
pkgsMaster = nixpkgsMaster.legacyPackages.${system}.pkgs; pkgsMaster = nixpkgsMaster.legacyPackages.${system}.pkgs;
pkgsUnstable = nixpkgsUnstable.legacyPackages.${system}.pkgs; pkgsUnstable = nixpkgsUnstable.legacyPackages.${system}.pkgs;
secret = import ./secret { }; secret = import ./secret { };
util = import ./lib/Util.nix { inherit lib; };
in
{
inherit
__findFile
const
inputs
pkgsJobber
pkgsMaster
pkgsUnstable
poetry2nixJobber
secret
self
util
;
}; };
}; };
@ -240,7 +244,9 @@
pkgs = nixpkgs.legacyPackages.${system}.pkgs; pkgs = nixpkgs.legacyPackages.${system}.pkgs;
pkgsMaster = nixpkgsMaster.legacyPackages.${system}.pkgs; pkgsMaster = nixpkgsMaster.legacyPackages.${system}.pkgs;
pkgsUnstable = nixpkgsUnstable.legacyPackages.${system}.pkgs; pkgsUnstable = nixpkgsUnstable.legacyPackages.${system}.pkgs;
secret = import ./secret { };
system = "aarch64-linux"; system = "aarch64-linux";
util = import ./lib/Util.nix { inherit lib; };
in in
nix-on-droid.lib.nixOnDroidConfiguration { nix-on-droid.lib.nixOnDroidConfiguration {
inherit pkgs; inherit pkgs;
@ -251,15 +257,15 @@
] ++ (ls ./option); ] ++ (ls ./option);
extraSpecialArgs = { extraSpecialArgs = {
inherit inherit
__findFile
const
inputs inputs
self
pkgsMaster pkgsMaster
pkgsUnstable pkgsUnstable
const secret
__findFile self
util
; ;
secret = import ./secret { };
util = import ./lib/Util.nix { inherit lib; };
}; };
}; };
}; };

View file

@ -4,19 +4,6 @@ let
url = "https://i.imgur.com/KkZFMD3.png"; url = "https://i.imgur.com/KkZFMD3.png";
sha256 = "sha256-cTNUeamZTjQDx8gGZkU1mj4kKS3FEE0+EDzFb5bsyZE="; sha256 = "sha256-cTNUeamZTjQDx8gGZkU1mj4kKS3FEE0+EDzFb5bsyZE=";
forceContrastText = false; forceContrastText = false;
# SEE: https://github.com/tinted-theming/schemes
# Blue: "${pkgs.base16-schemes}/share/themes/moonlight.yaml"
# Brown: "${pkgs.base16-schemes}/share/themes/sandcastle.yaml"
# Classy: "${pkgs.base16-schemes}/share/themes/monokai.yaml"
# Cold: "${pkgs.base16-schemes}/share/themes/nord.yaml"
# Cool: "${pkgs.base16-schemes}/share/themes/tokyo-night-dark.yaml"
# Gray: "${pkgs.base16-schemes}/share/themes/nova.yaml"
# Material: "${pkgs.base16-schemes}/share/themes/material.yaml"
# Purple: "${pkgs.base16-schemes}/share/themes/shades-of-purple.yaml"
# Retro: "${pkgs.base16-schemes}/share/themes/mocha.yaml"
# Warm: "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml"
style = null;
in in
{ {
options.module.wallpaper = { options.module.wallpaper = {
@ -28,15 +15,5 @@ in
default = pkgs.fetchurl { inherit url sha256; }; default = pkgs.fetchurl { inherit url sha256; };
type = lib.types.path; type = lib.types.path;
}; };
style = lib.mkOption {
default = style;
type =
with lib.types;
nullOr (oneOf [
path
lines
attrs
]);
};
}; };
} }

View file

@ -32,10 +32,9 @@ in
} }
// (lib.optionalAttrs wallpaper.forceContrastText { // (lib.optionalAttrs wallpaper.forceContrastText {
override = { override = {
base04 = lib.mkForce "000000"; base04 = "000000";
base05 = lib.mkForce "ffffff"; base05 = "ffffff";
base06 = lib.mkForce "ffffff"; base06 = "ffffff";
}; };
}) });
// (lib.optionalAttrs (wallpaper.style != null) { base16Scheme = wallpaper.style; });
} }