Soho vibes for Nix
Find a file
2023-06-03 21:11:10 -04:00
.github/workflows ci: add formatting check (#30) 2023-04-18 09:00:21 -04:00
modules fix(modules): vendor our own revision of nixpkgs 2023-06-03 21:11:10 -04:00
.editorconfig feat: initial commit 2023-03-26 21:15:25 -04:00
.gitignore feat: initial commit 2023-03-26 21:15:25 -04:00
CONTRIBUTING.md docs: add instructions for maintainers 2023-04-17 22:58:00 -04:00
default.nix feat: add flake-compat support 2023-04-14 09:12:59 -04:00
flake.lock fix(modules): vendor our own revision of nixpkgs 2023-06-03 21:11:10 -04:00
flake.nix fix(modules): vendor our own revision of nixpkgs 2023-06-03 21:11:10 -04:00
LICENSE feat: initial commit 2023-03-26 21:15:25 -04:00
README.md docs: add link to nixos modules 2023-04-17 21:52:58 -05:00

Logo
Catppuccin for Nix

Previews

🌻 Latte
🪴 Frappé
🌺 Macchiato
🌿 Mocha

Usage

  1. 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 = {
            modules = [
              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 = {
    modules = [
      <catppuccin/modules/home-manager>
    ];
  };
}

For standalone installations

_: {
  imports = [
    <catppuccin/modules/home-manager>
  ];

  home.username = "user";
  home.homeDirectory = "user";
  programs.home-manager.enable = true;
}
  1. Choose your desired flavour with catppuccin.flavour
_: {
  catppuccin.flavour = "mocha";
}
  1. 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