catppuccin / nix

❄️ Soothing pastel theme for Nix
https://nix.catppuccin.com/
MIT License
412 stars 53 forks source link
catppuccin hacktoberfest home-manager nix nix-flake nixos theme

Logo
Catppuccin for Nix

Previews

🌻 Latte
🪴 Frappé
🌺 Macchiato
🌿 Mocha

Usage

You will probably want to see our Getting started guide, but as a TLDR:

  1. Import the NixOS and home-manager modules
With Flakes ```nix { inputs = { nixpkgs.url = "nixpkgs/nixos-unstable"; catppuccin.url = "github:catppuccin/nix"; home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = { nixpkgs, catppuccin, home-manager }: { # for nixos module home-manager installations nixosConfigurations.pepperjacksComputer = pkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ catppuccin.nixosModules.catppuccin # if you use home-manager home-manager.nixosModules.home-manager { # if you use home-manager home-manager.users.pepperjack = { imports = [ ./home.nix catppuccin.homeManagerModules.catppuccin ]; }; } ]; }; # for standalone home-manager installations homeConfigurations.pepperjack = home-manager.lib.homeManagerConfiguration { pkgs = nixpkgs.legacyPackages.x86_64-linux; modules = [ ./home.nix catppuccin.homeManagerModules.catppuccin ]; }; }; } ```
With Nix Channels ```bash sudo nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager sudo nix-channel --add https://github.com/catppuccin/nix/archive/main.tar.gz catppuccin sudo nix-channel --update ``` For [NixOS module installations](https://nix-community.github.io/home-manager/index.html#sec-install-nixos-module): ```nix { imports = [ # if you use home-manager ]; # if you use home-manager home-manager.users.pepperjack = { imports = [ ]; }; } ``` For [standalone installations](https://nix-community.github.io/home-manager/index.html#sec-install-standalone) ```nix { imports = [ ]; home.username = "pepperjack"; programs.home-manager.enable = true; } ```
  1. Choose your desired flavor with catppuccin.flavor
{
  catppuccin.flavor = "mocha";
}
  1. Enable for supported programs with catppuccin.enable = true;
{
  programs.starship = {
    enable = true;
    catppuccin.enable = true;
  };
}
  1. Enable for all available programs you're using!
{
  catppuccin.enable = true;
}

🙋 FAQ

💝 Thanks to

 

Copyright © 2023-present Catppuccin Org