Skip to content

Commit 5ac2683

Browse files
authored
Merge pull request #2 from BackToBasicsEpita/flake
add flakes to repo
2 parents e4b68bb + 15c4b47 commit 5ac2683

File tree

2 files changed

+93
-0
lines changed

2 files changed

+93
-0
lines changed

flake.lock

+61
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
4+
futils.url = "github:numtide/flake-utils";
5+
};
6+
7+
outputs = { self, nixpkgs, futils } @ inputs:
8+
let
9+
inherit (nixpkgs) lib;
10+
inherit (lib) recursiveUpdate;
11+
inherit (futils.lib) eachDefaultSystem defaultSystems;
12+
13+
nixpkgsFor = lib.genAttrs defaultSystems (system: import nixpkgs {
14+
inherit system;
15+
});
16+
in
17+
(eachDefaultSystem (system:
18+
let
19+
pkgs = nixpkgsFor.${system};
20+
in
21+
{
22+
devShell = pkgs.mkShell {
23+
buildInputs = with pkgs; [
24+
git
25+
nodejs_20
26+
hugo
27+
yarn
28+
];
29+
};
30+
}
31+
));
32+
}

0 commit comments

Comments
 (0)