feat: update Nix flake file template
This commit is contained in:
parent
925a937649
commit
3e66f68c49
1 changed files with 8 additions and 4 deletions
|
|
@ -8,10 +8,14 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
${2:nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
${2:nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||||
}${3:flake-utils.url = "github:numtide/flake-utils";
|
systems.url = "github:nix-systems/default";}
|
||||||
}$4
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { $5 }:
|
outputs = { self, ${3:nixpkgs, systems, }... }:
|
||||||
$0
|
${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