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;
pkgsFor = system: import nixpkgs {inherit system;};
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;
font = {
@ -60,7 +61,6 @@
# Acessible through 'nix build', 'nix shell', etc
packages = forAllSystems (system:
import ./packages {
pkgs = nixpkgs.legacyPackages.${system};
});
# Formatter for your nix files, available through 'nix fmt'

View file

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