-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
28 lines (27 loc) · 837 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
description = "Personal Website";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
outputs = { self, nixpkgs }:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux.pkgs;
in {
devShells.x86_64-linux.default = pkgs.mkShell {
name = "site";
buildInputs = [
pkgs.nodejs_20
pkgs.actionlint
pkgs.k6
pkgs.rclone
pkgs.wrangler
(import ./data/tools/edda/derivation.nix { lib = pkgs.lib; python311Packages = pkgs.python311Packages; })
];
shellHook = ''
export PATH="$PWD/frontend/node_modules/.bin/:$PWD/backend/node_modules/.bin/:$PWD/data/tools/edda/result/bin:$PATH"
echo "Welcome to $name"
export PS1="\[\e[1;33m\][nix($name)]\$\[\e[0m\] "
'';
};
};
}