Skip to content

Commit

Permalink
Merge pull request #2 from BackToBasicsEpita/flake
Browse files Browse the repository at this point in the history
add flakes to repo
  • Loading branch information
Villosse authored Aug 4, 2024
2 parents e4b68bb + 15c4b47 commit 5ac2683
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 0 deletions.
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
futils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, futils } @ inputs:
let
inherit (nixpkgs) lib;
inherit (lib) recursiveUpdate;
inherit (futils.lib) eachDefaultSystem defaultSystems;

nixpkgsFor = lib.genAttrs defaultSystems (system: import nixpkgs {
inherit system;
});
in
(eachDefaultSystem (system:
let
pkgs = nixpkgsFor.${system};
in
{
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
git
nodejs_20
hugo
yarn
];
};
}
));
}

0 comments on commit 5ac2683

Please sign in to comment.