Init flakes

This commit is contained in:
atxr 2025-04-02 19:46:46 +02:00
parent 99a1ffc598
commit 1e8ac5f14c
4 changed files with 89 additions and 0 deletions

26
flake.nix Normal file
View file

@ -0,0 +1,26 @@
# source: https://github.com/nix-community/poetry2nix/blob/master/templates/app/flake.nix
{
description = "adlc.fr";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
# pkgs = import nixpkgs { inherit system; config.allowUnfree = true; };
in
{
devShells.default = pkgs.mkShell {
packages = [
pkgs.docker
pkgs.gnumake
pkgs.nixpkgs-fmt
pkgs.hugo
];
};
});
}