mirror of
https://github.com/ItsDrike/itsdrike.com.git
synced 2025-06-29 08:10:41 +00:00
Add nix dev-shell
This commit is contained in:
parent
532da8ef86
commit
968bc2e532
4 changed files with 59 additions and 0 deletions
29
flake.nix
Normal file
29
flake.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
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);
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue