# -*- mode: snippet -*- # contributor: Kiana Sheibani # key: __flake.nix # name: nix flake template # -- { description = "${1:Flake description}"; inputs = { ${2:nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; systems.url = "github:nix-systems/default";} }; 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 }; }