itsdrike.com/flake.nix
2024-07-18 17:07:10 +02:00

30 lines
662 B
Nix

{
description = "My personal website (itsdrike.com)";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
};
outputs = {nixpkgs, ...}: let
inherit (nixpkgs) lib;
pkgsFor = system: import nixpkgs {inherit system;};
targetSystems = ["aarch64-linux" "x86_64-linux"];
in {
devShells = lib.genAttrs targetSystems (system: let
pkgs = pkgsFor system;
in {
default = pkgs.mkShell {
packages = with pkgs; [
bash
coreutils
hugo
nodePackages.npm
];
};
});
formatter = lib.genAttrs targetSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
};
}