2023-03-26 18:14:56 -07:00
< h3 align = "center" >
< img src = "https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/logos/exports/1544x1544_circle.png" width = "100" alt = "Logo" / > < br / >
< img src = "https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/misc/transparent.png" height = "30" width = "0px" / >
2023-03-26 18:57:23 -07:00
Catppuccin for < a href = "https://nixos.org" > Nix< / a >
2023-03-26 18:14:56 -07:00
< img src = "https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/misc/transparent.png" height = "30" width = "0px" / >
< / h3 >
< p align = "center" >
2023-04-14 20:46:58 -07:00
< a href = "https://github.com/catppuccin/nix/stargazers" > < img src = "https://img.shields.io/github/stars/catppuccin/nix?colorA=363a4f&colorB=b7bdf8&style=for-the-badge" > < / a >
< a href = "https://github.com/catppuccin/nix/issues" > < img src = "https://img.shields.io/github/issues/catppuccin/nix?colorA=363a4f&colorB=f5a97f&style=for-the-badge" > < / a >
< a href = "https://github.com/catppuccin/nix/contributors" > < img src = "https://img.shields.io/github/contributors/catppuccin/nix?colorA=363a4f&colorB=a6da95&style=for-the-badge" > < / a >
2023-03-26 18:14:56 -07:00
< / p >
< p align = "center" >
2023-06-26 10:33:04 -07:00
< img src = "assets/previews/preview.webp" / >
2023-03-26 18:14:56 -07:00
< / p >
## Previews
< details >
< summary > 🌻 Latte< / summary >
2023-06-26 10:32:20 -07:00
< img src = "assets/previews/latte.webp" / >
2023-03-26 18:14:56 -07:00
< / details >
< details >
< summary > 🪴 Frappé< / summary >
2023-06-26 10:32:20 -07:00
< img src = "assets/previews/frappe.webp" / >
2023-03-26 18:14:56 -07:00
< / details >
< details >
< summary > 🌺 Macchiato< / summary >
2023-06-26 10:32:20 -07:00
< img src = "assets/previews/macchiato.webp" / >
2023-03-26 18:14:56 -07:00
< / details >
< details >
< summary > 🌿 Mocha< / summary >
2023-06-26 10:32:20 -07:00
< img src = "assets/previews/mocha.webp" / >
2023-03-26 18:14:56 -07:00
< / details >
## Usage
2024-05-21 13:57:51 -07:00
You will probably want to see our [Getting started guide ](http://nix.catppuccin.com/getting-started/index.html ), but as a TLDR:
2023-04-14 20:46:58 -07:00
1. Import the [NixOS ](https://nixos.org ) and [home-manager ](https://github.com/nix-community/home-manager ) modules
< details >
< summary > With Flakes< / summary >
```nix
{
inputs = {
2024-05-21 13:57:51 -07:00
nixpkgs.url = "nixpkgs/nixos-unstable";
2023-04-14 20:46:58 -07:00
catppuccin.url = "github:catppuccin/nix";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
2024-05-21 13:57:51 -07:00
outputs = { nixpkgs, catppuccin, home-manager }: {
2023-04-14 20:46:58 -07:00
# for nixos module home-manager installations
2024-05-21 13:57:51 -07:00
nixosConfigurations.pepperjacksComputer = pkgs.lib.nixosSystem {
system = "x86_64-linux";
2023-04-14 20:46:58 -07:00
modules = [
catppuccin.nixosModules.catppuccin
2024-05-21 13:57:51 -07:00
# if you use home-manager
2023-04-14 20:46:58 -07:00
home-manager.nixosModules.home-manager
2024-05-21 13:57:51 -07:00
2023-04-14 20:46:58 -07:00
{
2024-05-21 13:57:51 -07:00
# if you use home-manager
home-manager.users.pepperjack = {
2023-12-16 15:45:45 -08:00
imports = [
./home.nix
2023-04-14 20:46:58 -07:00
catppuccin.homeManagerModules.catppuccin
];
};
}
];
};
# for standalone home-manager installations
2024-05-21 13:57:51 -07:00
homeConfigurations.pepperjack = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
2023-04-14 20:46:58 -07:00
modules = [
2024-05-21 13:57:51 -07:00
./home.nix
2023-04-14 20:46:58 -07:00
catppuccin.homeManagerModules.catppuccin
];
};
};
}
```
< / details >
< details >
< summary > With Nix Channels< / summary >
```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
2023-12-16 15:45:45 -08:00
{
2023-04-14 20:46:58 -07:00
imports = [
< catppuccin / modules / nixos >
2024-05-21 13:57:51 -07:00
# if you use home-manager
< home-manager / nixos >
2023-04-14 20:46:58 -07:00
];
2024-05-21 13:57:51 -07:00
# if you use home-manager
home-manager.users.pepperjack = {
2023-12-16 15:45:45 -08:00
imports = [
2023-04-14 20:46:58 -07:00
< catppuccin / modules / home-manager >
];
};
}
```
For [standalone installations ](https://nix-community.github.io/home-manager/index.html#sec-install-standalone )
```nix
2023-12-16 15:45:45 -08:00
{
2023-04-14 20:46:58 -07:00
imports = [
< catppuccin / modules / home-manager >
];
2024-05-21 13:57:51 -07:00
home.username = "pepperjack";
2023-04-14 20:46:58 -07:00
programs.home-manager.enable = true;
}
```
< / details >
2024-05-21 17:23:55 -07:00
2. Choose your desired flavor with `catppuccin.flavor`
2023-04-14 20:46:58 -07:00
```nix
2023-12-16 15:45:45 -08:00
{
2024-05-21 17:23:55 -07:00
catppuccin.flavor = "mocha";
2023-04-14 20:46:58 -07:00
}
```
3. Enable for supported programs with `catppucin.enable = true;`
```nix
2023-12-16 15:45:45 -08:00
{
2023-04-14 20:46:58 -07:00
programs.starship = {
enable = true;
catppuccin.enable = true;
};
}
```
2024-05-21 13:57:51 -07:00
4. Enable for all available programs you're using!
```nix
{
catppuccin.enable = true;
}
```
2023-03-26 18:14:56 -07:00
## 🙋 FAQ
2023-04-14 20:46:58 -07:00
- Q: ** "How do I know what programs are supported?"**\
2024-05-21 13:57:51 -07:00
A: You can find programs supported through home-manager [here ](https://nix.catppuccin.com/options/home-manager-options.html ),
and NixOS modules [here ](https://nix.catppuccin.com/options/nixos-options.html )
- Q: ** "How do I set `catppuccin.enable` for everything I use?"**\
2024-06-29 07:26:26 -07:00
A: You can set `catppuccin.enable` [globally ](https://nix.catppuccin.com/options/home-manager-options.html#catppuccinenable )
2023-03-26 18:14:56 -07:00
2024-05-20 21:34:42 -07:00
- Q: ** "What versions of NixOS and home-manager are supported?"**\
A: We primarily support the `unstable` branch, but try our best to support the current stable release.
You can check if your stable release is currently supported at [status.nixos.org ](https://status.nixos.org/ )
2024-08-23 05:20:38 -07:00
- Q: ** "How do I fix the error: ... during evaluation because the option 'allow-import-from-derivation' is disabled"**\
A: Some ports need to read and/or manipulate remote resources, resulting in Nix performing [IFD ](https://nix.dev/manual/nix/latest/language/import-from-derivation ).
< details >
< summary > Disable modules that use IFD< / summary >
```nix
{
programs = {
cava.catppuccin.enable = false;
gh-dash.catppuccin.enable = false;
imv.catppuccin.enable = false;
kitty.catppuccin.enable = false; # IFD is introduced by home-manager
swaylock.catppuccin.enable = false;
};
services = {
mako.catppuccin.enable = false;
};
}
```
< / details >
2023-03-26 18:14:56 -07:00
## 💝 Thanks to
- [Stonks3141 ](https://github.com/Stonks3141 )
2023-04-14 20:46:58 -07:00
- [getchoo ](https://github.com/getchoo )
2023-03-26 18:14:56 -07:00
< p align = "center" >
< img src = "https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/footers/gray0_ctp_on_line.svg?sanitize=true" / >
< / p >
< p align = "center" >
2023-04-14 20:37:32 -07:00
Copyright © 2023-present < a href = "https://github.com/catppuccin" target = "_blank" > Catppuccin Org< / a >
2023-03-26 18:14:56 -07:00
< / p >
< p align = "center" >
< a href = "https://github.com/catppuccin/catppuccin/blob/main/LICENSE" > < img src = "https://img.shields.io/static/v1.svg?style=for-the-badge&label=License&message=MIT&logoColor=d9e0ee&colorA=363a4f&colorB=b7bdf8" / > < / a >
< / p >