remove-app

Remove applications from NixOS or Home Manager configurations and validate with nix flake check.

4|Updated Feb 20, 2023
One-click install
npx skills add https://github.com/Hayao0819/dotfiles --skill remove-app
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: remove-app
Source: https://github.com/Hayao0819/dotfiles/tree/main/.claude/skills/remove-app
Command: npx skills add https://github.com/Hayao0819/dotfiles --skill remove-app

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Removes an application from NixOS or Home Manager configuration. Locates all references, assesses impact on shared modules, and safely removes.

Core Features & Use Cases

  • Locate references across nix configuration files: nixos//configuration.nix, modules/nixos//default.nix, modules/home-manager/*/default.nix, modules/home-manager/pkgs/global.nix, modules/home-manager/pkgs/linux.nix
  • Assess impact: determine if removal is safe, requires user confirmation for shared modules, and warn about dependencies
  • Remove and validate: remove configuration, clean up related settings, and verify with nix flake check

Quick Start

Identify all references to the target application in nix configuration, assess module impact and dependencies, and remove it.

Frequently Asked Questions about remove-app

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely remove an application from a NixOS configuration?

To safely remove an application from a NixOS configuration, locate all references across configuration files, assess impact on shared modules, and verify the changes using nix flake check.

How does cleanup work for Home Manager packages in NixOS?

Cleanup for Home Manager packages works by locating references in module files like pkgs/global.nix, assessing dependency impacts, and validating the removal with nix flake check.

Can I remove a NixOS module without breaking shared dependencies?

You can remove a NixOS module without breaking shared dependencies by evaluating the impact on shared modules first, prompting for confirmation if needed, and validating the configuration.

What is the best way to clean up unused apps in a Nix flake?

The best way to clean up unused apps in a Nix flake is to locate all configuration references, remove the application settings, and run nix flake check to validate the build.

Which files need to be checked to remove an app from NixOS?

Files needing checks to remove an app from NixOS include nixos/*/configuration.nix, modules/nixos/*/default.nix, and modules/home-manager/*/default.nix to ensure all references are found.