Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented May 28, 2025

This PR adds DSC integration to the NerdFonts module by implementing a class-based DSCv2 resource as requested. The implementation creates a declarative way to install NerdFonts using PowerShell DSC.

Features Added

  • New NerdFont DSC Resource: A class-based DSCv2 resource that supports:
    • Installing specific NerdFonts by name
    • Installing all NerdFonts at once
    • Specifying installation scope (CurrentUser or AllUsers)
    • Force installation option

Example Usage

# Install a specific NerdFont
NerdFont 'InstallHackFont' {
    Name = 'Hack'
    Ensure = 'Present'
    Scope = 'CurrentUser'
}

# Install all NerdFonts for all users
NerdFont 'InstallAllNerdFonts' {
    All = $true
    Ensure = 'Present'
    Scope = 'AllUsers'
}

Implementation Details

  • Created a DSC resource in src/dsc/NerdFontDSC.psm1 that implements:
    • Get() method to determine current state
    • Test() method to validate desired state
    • Set() method to apply changes
  • Added documentation in src/dsc/README.md with detailed resource usage
  • Updated main README.md to include DSC usage examples
  • Added basic tests for the DSC resource

Fixes #35.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits May 28, 2025 00:49
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] 🚀[Feature]: DSC integration 🚀[Feature]: Add DSC integration May 28, 2025
@Copilot Copilot AI requested a review from MariusStorhaug May 28, 2025 00:54
Copilot finished work on behalf of MariusStorhaug May 28, 2025 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🚀[Feature]: DSC integration
2 participants