colors: simplify

This commit is contained in:
Daniel Flanagan 2024-06-14 11:07:06 -05:00
parent 5badc90690
commit ada6443dd5
2 changed files with 4 additions and 4 deletions

View file

@ -47,8 +47,9 @@
]; ];
forAllSystems = nixpkgs.lib.genAttrs systems; forAllSystems = nixpkgs.lib.genAttrs systems;
pkgsFor = system: import nixpkgs {inherit system;};
in { in {
colors = (import ./lib/colors.nix {inherit nixpkgs;}).schemes.catppuccin-mocha-sapphire; colors = (import ./lib/colors.nix {inherit (nixpkgs) lib;}).schemes.catppuccin-mocha-sapphire;
# colors = (import ./lib/colors.nix inputs).color-schemes.donokai; # colors = (import ./lib/colors.nix inputs).color-schemes.donokai;
font = { font = {
@ -60,7 +61,6 @@
# Acessible through 'nix build', 'nix shell', etc # Acessible through 'nix build', 'nix shell', etc
packages = forAllSystems (system: packages = forAllSystems (system:
import ./packages { import ./packages {
pkgs = nixpkgs.legacyPackages.${system};
}); });
# Formatter for your nix files, available through 'nix fmt' # Formatter for your nix files, available through 'nix fmt'

View file

@ -1,4 +1,4 @@
{nixpkgs, ...}: { {lib, ...}: {
schemes = let schemes = let
mkColorScheme = scheme @ { mkColorScheme = scheme @ {
scheme-name, scheme-name,
@ -51,7 +51,7 @@
// scheme; // scheme;
in in
{ {
withHashPrefix = nixpkgs.lib.mapAttrs (_: value: "#${value}") base; withHashPrefix = lib.mapAttrs (_: value: "#${value}") base;
} }
// base; // base;
in { in {