Soho vibes for Nix
29aa551d4a
* chore: update dev flake inputs Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/0c5704eceefcb7bb238a958f532a86e3b59d76db' (2024-04-25) → 'github:nix-community/home-manager/44677a1c96810a8e8c4ffaeaad10c842402647c1' (2024-05-12) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/572af610f6151fd41c212f897c71f7056e3fb518' (2024-04-23) → 'github:NixOS/nixpkgs/2057814051972fa1453ddfb0d98badbea9b83c06' (2024-05-12) * Update mpv: db31f00b5107320f8882eb8c727060d5eab702c9 → 7fc6ed93dec891865d0b42be42ba9b4fb7d5a338 gh-dash: cb9fea0b86c300b26f1211079d656d02a7eb2c62 → a971447dbb6e43c274ce52697c0bd381735c3c8a foot: 64ca6fb7a3e1e6867d76d6c0763e0b2d83fc4f01 → 307611230661b7b1787feb7f9d122e851bae97e9 tmux: a556353d60833367b13739e660d4057a96f2f4fe → 697087f593dae0163e01becf483b192894e69e33 neovim: a1439ad7c584efb3d0ce14ccb835967f030450fe → d97387aea8264f484bb5d5e74f2182a06c83e0d8 bottom: c0efe9025f62f618a407999d89b04a231ba99c92 → 66c540ea512187df5f0c6c97312b0c6da7225af0 --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> |
||
---|---|---|
.github | ||
_sources | ||
assets/previews | ||
dev | ||
docs | ||
modules | ||
.editorconfig | ||
.gitignore | ||
CONTRIBUTING.md | ||
default.nix | ||
flake.nix | ||
LICENSE | ||
nvfetcher.toml | ||
README.md | ||
test.nix |
Catppuccin for Nix
Previews
🌻 Latte
🪴 Frappé
🌺 Macchiato
🌿 Mocha
Usage
- Import the NixOS and home-manager modules
With Flakes
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-22.11";
catppuccin.url = "github:catppuccin/nix";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, catppuccin, home-manager }: let
system = "x86_64-linux";
pkgs = import nixpkgs {inherit system;};
in {
# for nixos module home-manager installations
nixosConfigurations.host = pkgs.lib.nixosSystem {
inherit system;
modules = [
catppuccin.nixosModules.catppuccin
home-manager.nixosModules.home-manager
{
home-manager.users.user = {
imports = [
./home.nix
catppuccin.homeManagerModules.catppuccin
];
};
}
];
};
# for standalone home-manager installations
homeConfigurations.user = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
catppuccin.homeManagerModules.catppuccin
];
};
};
}
With Nix Channels
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:
{
imports = [
<home-manager/nixos>
<catppuccin/modules/nixos>
];
home-manager.users.user = {
imports = [
<catppuccin/modules/home-manager>
];
};
}
{
imports = [
<catppuccin/modules/home-manager>
];
home.username = "user";
home.homeDirectory = "user";
programs.home-manager.enable = true;
}
- Choose your desired flavour with
catppuccin.flavour
{
catppuccin.flavour = "mocha";
}
- Enable for supported programs with
catppucin.enable = true;
{
programs.starship = {
enable = true;
catppuccin.enable = true;
};
}
🙋 FAQ
- Q: "How do I know what programs are supported?"
A: You can find programs supported through home-manager here, and NixOS modules here
💝 Thanks to
Copyright © 2023-present Catppuccin Org