21 lines
592 B
Nix
21 lines
592 B
Nix
# -*- mode: snippet -*-
|
|
# contributor: Kiana Sheibani <kiana.a.sheibani@gmail.com>
|
|
# 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
|
|
};
|
|
}
|