feat: update Nix flake file template

This commit is contained in:
Kiana Sheibani 2025-10-22 13:38:07 -04:00
parent a1c0bed2db
commit 49d59cfa9f
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -8,10 +8,14 @@
inputs = {
${2:nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
}${3:flake-utils.url = "github:numtide/flake-utils";
}$4
systems.url = "github:nix-systems/default";}
};
outputs = { $5 }:
$0
outputs = { self, ${3:nixpkgs, systems, }... }:
${3:$(when (and (string-match-p "nixpkgs[[:space:]]*," yas-text)
(string-match-p "systems[[:space:]]*," yas-text)) "let
eachSystem = nixpkgs.lib.genAttrs (import systems);
in ")}{
$0
};
}