Skip to content

Update Nix Darwin Configuration for Nerd Fonts and Shell Scripts #2

@qmi03

Description

@qmi03

Description:

I followed your video tutorial to set up my Nix Darwin configuration, but after updating my flake, the build failed. I identified two key changes that resolved the issues, and I believe the tutorial or repository could benefit from incorporating these updates.

  1. Nerd Fonts Configuration
  • Problem: The Nerd Fonts packaging has changed, and the .override method no longer works.
  • Solution: Replace the font configuration in darwin-configuration.nix as follows:
# Before  
        fonts.packages = [
(pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; })  
        ];
# After  
        fonts.packages = [
          pkgs.nerd-fonts.jetbrains-mono
        ];
  1. Shell Script read Fix
  • Problem: The shell script used to activate configurations produces warnings due to missing the -r flag in the read command.
  • Solution: Check this gist

Here’s the diff from my repository to see the flake.lock and flake.nix changes: c00d083

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions