Skip to content

The color schemes at alacritty/alacritty-theme packaged for Nix

License

Notifications You must be signed in to change notification settings

alexghr/alacritty-theme.nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alacritty-theme.nix

This repo packages all of the themes available at alacritty/alacritty-theme as individual flake outputs for easy use in your nix-managed Alacritty config.

Outputs

Each TOML file in the alacritty-theme/themes folder is exported as a package.

Furthermore an overlay is provided that groups all of these themes under a single attribute set: pkgs.alacritty-theme.

Apply a color scheme using home-manager

This sample config applies the overlay and configures cyber_punk_neon as the color scheme for Alacritty using home-manager.

You can read more about installing overlays with Flakes on NixOS Wiki.

# flake.nix
{
  inputs.alacritty-theme.url = "github:alexghr/alacritty-theme.nix";
  outputs = { nixpkgs, alacritty-theme, ... }: {
    nixosConfigurations.yourComputer =  nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        ({ config, pkgs, ...}: {
          # install the overlay
          nixpkgs.overlays = [ alacritty-theme.overlays.default ];
        })
        ({ config, pkgs, ... }: {
          home-manager.users.you = hm: {
            programs.alacritty = {
              enable = true;
              # use a color scheme from the overlay
              settings.import = [ pkgs.alacritty-theme.cyber_punk_neon ];
            };
          };
        })
      ];
    };
  };
}

That's it 😄

About

The color schemes at alacritty/alacritty-theme packaged for Nix

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published