catppuccin / nix

❄️ Soothing pastel theme for Nix
https://nix.catppuccin.com/
MIT License
313 stars 46 forks source link

Support Nix Darwin #162

Open SailorSnoW opened 2 months ago

SailorSnoW commented 2 months ago

Would it be something possible to add a module to support nix-darwin system configurations ?

Trying to use catppuccin-nix in a darwin module cause this error (grub isn't a thing in nix-darwin):

error: The option `boot.loader.grub.font' does not exist. Definition values:
       - In `<unknown-file>':
           {
             _type = "if";
             condition = false;
             content = "/nix/store/9dgvl02bvzsadmwsq014r14509bf6fmz-catppuccin-grub-theme/font.pf2";
           }
isabelroses commented 2 months ago

Would it be something possible to add a module to support nix-darwin system configurations ?

Trying to use catppuccin-nix in a darwin module cause this error (grub isn't a thing in nix-darwin):

error: The option `boot.loader.grub.font' does not exist. Definition values:
       - In `<unknown-file>':
           {
             _type = "if";
             condition = false;
             content = "/nix/store/9dgvl02bvzsadmwsq014r14509bf6fmz-catppuccin-grub-theme/font.pf2";
           }

The nixos module is for only nixos perhaps you were looking for the home-manager module?

SailorSnoW commented 2 months ago

oh yeah I guess I can just use it through Home-manager then, but what if a nix-darwin system doesn't use home-manager then ?

isabelroses commented 2 months ago

but what if a nix-darwin system doesn't use home-manager then?

Well the nixos module only provides grub and console colours which can't be used anyway on nix-darwin. And since the options are different between home-manager and nixos modules, the nixos modules of this repo does not provide those modules. Perhaps is someone were to PR them it could be doable, like for lazygit.

getchoo commented 2 months ago

if there's enough interest i would gladly accept the addition of a nix-darwin module. my only concern would be the lack of clear configuration options for many packages, but nixos has similar issues right now so 🤷🏻