feat: update Nix flake file template
This commit is contained in:
parent
a1c0bed2db
commit
49d59cfa9f
1 changed files with 8 additions and 4 deletions
|
|
@ -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
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue