2023-03-25 12:43:23 +02:00
|
|
|
{
|
2023-04-03 21:41:49 +03:00
|
|
|
nixConfig = {
|
|
|
|
trusted-substituters = "https://cache.nixos.org/";
|
|
|
|
trusted-public-keys = "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=";
|
|
|
|
extra-experimental-features = "nix-command flakes";
|
|
|
|
};
|
2023-03-25 12:43:23 +02:00
|
|
|
inputs = {
|
2024-10-10 04:37:58 +03:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; # TODO 24.11
|
2023-03-25 12:43:23 +02:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
2024-10-10 05:00:02 +03:00
|
|
|
outputs =
|
|
|
|
{
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
flake-utils,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
flake-utils.lib.eachDefaultSystem (
|
|
|
|
system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in
|
|
|
|
{
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
|
|
|
|
packages = with pkgs; [
|
|
|
|
hugo
|
|
|
|
brotli
|
|
|
|
zopfli
|
|
|
|
parallel
|
|
|
|
dart-sass
|
|
|
|
];
|
|
|
|
};
|
2024-10-10 04:51:36 +03:00
|
|
|
|
2024-10-10 05:00:02 +03:00
|
|
|
formatter = pkgs.nixfmt-rfc-style;
|
|
|
|
}
|
|
|
|
);
|
2023-03-25 12:43:23 +02:00
|
|
|
}
|