Lyndeno / apple-fonts.nix

Nix flake to easily install Apple fonts from their website.
MIT License
30 stars 17 forks source link

Any ideas on how to use this on nicos? (Noob here) #11

Open oldeferentro opened 2 months ago

oldeferentro commented 2 months ago

I created a file called apple.nix and added it as a module in flake.nix (similar to how configuration.nix is address)

But it's not working. Any tips? Thanks

Zirui-Ding commented 1 week ago

Maybe you can have a look at my config files. (I am also a noob) https://github.com/Zirui-Ding/nix-config

Briefly, I added this and stylix in my inputs of flake.nix,

    stylix.url = "github:danth/stylix";
    apple-fonts.url = "github:Lyndeno/apple-fonts.nix";

Setted specialArgs = { inherit inputs;};, Used stylix as a module stylix.nixosModules.stylix, And apple fonts can be used in my configuration.nix

  stylix.fonts = {
    serif = {
      package = inputs.apple-fonts.packages.${pkgs.system}.sf-pro-nerd;
      name = "SFProDisplay Nerd Font";
    };
...
  };