From 198627f9ca7af14d47c081618b46ed491eaf8d17 Mon Sep 17 00:00:00 2001 From: demenik Date: Fri, 12 Dec 2025 22:52:38 +0100 Subject: [PATCH] feat: Update npm flake snippet --- home/editors/nvim/plugins/snippet/nix/default.nix | 8 ++++++++ home/editors/nvim/plugins/snippet/nix/npm.flake.nix | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/home/editors/nvim/plugins/snippet/nix/default.nix b/home/editors/nvim/plugins/snippet/nix/default.nix index 91308ab..b1082a7 100644 --- a/home/editors/nvim/plugins/snippet/nix/default.nix +++ b/home/editors/nvim/plugins/snippet/nix/default.nix @@ -41,4 +41,12 @@ template = builtins.readFile ./gradle.flake.nix; placeholders."0" = "25"; }; + flakenpm = { + template = builtins.readFile ./npm.flake.nix; + placeholders = { + "1" = "npm-app"; + "2" = "0.1.0"; + "0" = null; + }; + }; } diff --git a/home/editors/nvim/plugins/snippet/nix/npm.flake.nix b/home/editors/nvim/plugins/snippet/nix/npm.flake.nix index f230daa..c6cbf55 100644 --- a/home/editors/nvim/plugins/snippet/nix/npm.flake.nix +++ b/home/editors/nvim/plugins/snippet/nix/npm.flake.nix @@ -12,8 +12,8 @@ flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs {inherit system;}; - name = "npm-app"; - version = "0.1.0"; + name = "<1>"; + version = "<2>"; buildInputs = with pkgs; [ nodejs @@ -28,7 +28,7 @@ inherit (pkgs.importNpmLock) npmConfigHook; installPhase = '' - # ... + <0> ''; };