| name | Nix Ecosystem |
| description | This skill should be used when the user asks to "write nix", "nix expression", "flake.nix", "home-manager config", "programs.*", "services.*", or works with Nix language, flakes, or Home Manager. Provides comprehensive Nix ecosystem patterns and best practices. |
| version | 0.1.0 |
let expensive = builtins.trace "Computing expensive" (1 + 1); in { a = 1; b = expensive; }.a # Does not compute expensive
buildResult = pkgs.stdenv.mkDerivation { ... };
set.attr set."attr-with-dashes"
rec { a = 1; b = a + 1; }
nativeBuildInputs = [ pkgs.cmake ]; buildInputs = [ pkgs.openssl ];
installPhase = '' mkdir -p $out/bin cp mypackage $out/bin/ ''; }
Libraries linked at runtime
buildInputs = [ openssl zlib ]; }
config = lib.mkIf config.myModule.enable { # configuration when enabled }; }
inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; };
outputs = { self, nixpkgs, ... }@inputs: { # output attributes }; }
config = lib.mkIf config.custom.feature.enable { # configuration when enabled }; }
home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; home-manager.users.username = import ./home.nix; }