update and introduce react router

This commit is contained in:
Mona Mayrhofer 2025-12-23 16:30:04 +01:00
parent bf32423169
commit fa49ed07db
Signed by: Nionidh
GPG key ID: 374AB152BDEBA1AE
27 changed files with 349 additions and 187 deletions

View file

@ -6,8 +6,9 @@
url = "file+file:///dev/null";
flake = false;
};
nixpkgs.url = "github:cachix/devenv-nixpkgs/rolling";
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
devenv.url = "github:cachix/devenv";
nix2container.url = "github:nlewo/nix2container";
nix2container.inputs.nixpkgs.follows = "nixpkgs";
@ -19,54 +20,40 @@
extra-substituters = "https://devenv.cachix.org";
};
outputs = inputs @ {
flake-parts,
devenv-root,
...
}:
flake-parts.lib.mkFlake {inherit inputs;} {
outputs =
inputs@{ flake-parts, devenv-root, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.devenv.flakeModule
];
systems = ["x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];
systems = [
"x86_64-linux"
"i686-linux"
"x86_64-darwin"
"aarch64-linux"
"aarch64-darwin"
];
perSystem = {
#config,
#self',
##inputs',
pkgs,
#system,
...
}: let
in {
devenv.shells.default = {
devenv.root = let
devenvRootFileContent = builtins.readFile devenv-root.outPath;
in
pkgs.lib.mkIf (devenvRootFileContent != "") devenvRootFileContent;
perSystem =
{
config,
self',
inputs',
pkgs,
system,
...
}:
{
devenv.shells.default = {
name = "my-project";
imports = [ ];
name = "TODO-template-name";
packages = [
pkgs.biome
];
processes = {
#api-dev.exec = "cd packages/api && bun dev";
#web-dev.exec = "cd packages/web && bun dev";
};
languages.javascript = {
enable = true;
package = pkgs.nodejs_22;
bun.enable = true;
npm.enable = false;
pnpm.enable = false;
languages.javascript = {
enable = true;
bun.enable = true;
};
};
};
};
flake = {
};
flake = { };
};
}