rose-pine-nix/README.md

194 lines
5.4 KiB
Markdown
Raw Normal View History

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">
<img src="assets/previews/preview.webp"/>
2023-03-26 18:14:56 -07:00
</p>
## Previews
<details>
<summary>🌻 Latte</summary>
<img src="assets/previews/latte.webp"/>
2023-03-26 18:14:56 -07:00
</details>
<details>
<summary>🪴 Frappé</summary>
<img src="assets/previews/frappe.webp"/>
2023-03-26 18:14:56 -07:00
</details>
<details>
<summary>🌺 Macchiato</summary>
<img src="assets/previews/macchiato.webp"/>
2023-03-26 18:14:56 -07:00
</details>
<details>
<summary>🌿 Mocha</summary>
<img src="assets/previews/mocha.webp"/>
2023-03-26 18:14:56 -07:00
</details>
## Usage
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 = {
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";
};
};
outputs = { nixpkgs, catppuccin, home-manager }: {
2023-04-14 20:46:58 -07:00
# for nixos module home-manager installations
nixosConfigurations.pepperjacksComputer = pkgs.lib.nixosSystem {
system = "x86_64-linux";
2023-04-14 20:46:58 -07:00
modules = [
catppuccin.nixosModules.catppuccin
# if you use home-manager
2023-04-14 20:46:58 -07:00
home-manager.nixosModules.home-manager
2023-04-14 20:46:58 -07:00
{
# if you use home-manager
home-manager.users.pepperjack = {
imports = [
./home.nix
2023-04-14 20:46:58 -07:00
catppuccin.homeManagerModules.catppuccin
];
};
}
];
};
# for standalone home-manager installations
homeConfigurations.pepperjack = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
2023-04-14 20:46:58 -07:00
modules = [
./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-04-14 20:46:58 -07:00
imports = [
<catppuccin/modules/nixos>
# if you use home-manager
<home-manager/nixos>
2023-04-14 20:46:58 -07:00
];
# if you use home-manager
home-manager.users.pepperjack = {
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-04-14 20:46:58 -07:00
imports = [
<catppuccin/modules/home-manager>
];
home.username = "pepperjack";
2023-04-14 20:46:58 -07:00
programs.home-manager.enable = true;
}
```
</details>
2. Choose your desired flavour with `catppuccin.flavour`
```nix
{
2023-04-14 20:46:58 -07:00
catppuccin.flavour = "mocha";
}
```
3. Enable for supported programs with `catppucin.enable = true;`
```nix
{
2023-04-14 20:46:58 -07:00
programs.starship = {
enable = true;
catppuccin.enable = true;
};
}
```
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?"**\
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?"**\
A: You can set `catppuccin.enable` [globally](options/nixos-options.md#catppuccinenable)
2023-03-26 18:14:56 -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/)
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
&nbsp;
<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">
Copyright &copy; 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>