nix icon indicating copy to clipboard operation
nix copied to clipboard

Support Nix Darwin

Open SailorSnoW opened this issue 1 year ago • 8 comments

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";
           }

SailorSnoW avatar May 06 '24 17:05 SailorSnoW

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?

isabelroses avatar May 06 '24 17:05 isabelroses

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 ?

SailorSnoW avatar May 06 '24 17:05 SailorSnoW

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.

isabelroses avatar May 06 '24 18:05 isabelroses

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 🤷🏻

getchoo avatar May 08 '24 00:05 getchoo

Module for nix-darwin would be really useful 🙏

jpaju avatar Oct 09 '24 20:10 jpaju