From cecb4c94b75d9b9097316d338c91271bdefb3300 Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Tue, 10 Sep 2024 08:09:59 +0200 Subject: [PATCH] feat: add new flake profiles and update app component --- .direnv/flake-profile | 2 +- .direnv/flake-profile-3-link | 1 + .direnv/flake-profile-4-link | 1 + devenv.nix | 23 +++++++++++++++++++++++ src/app/app.component.html | 4 +++- 5 files changed, 29 insertions(+), 2 deletions(-) create mode 120000 .direnv/flake-profile-3-link create mode 120000 .direnv/flake-profile-4-link create mode 100644 devenv.nix diff --git a/.direnv/flake-profile b/.direnv/flake-profile index c7ae5b7..e289079 120000 --- a/.direnv/flake-profile +++ b/.direnv/flake-profile @@ -1 +1 @@ -flake-profile-2-link \ No newline at end of file +flake-profile-4-link \ No newline at end of file diff --git a/.direnv/flake-profile-3-link b/.direnv/flake-profile-3-link new file mode 120000 index 0000000..327774e --- /dev/null +++ b/.direnv/flake-profile-3-link @@ -0,0 +1 @@ +/nix/store/rsadgr5y0wa25gvk7j7zcml5pf9ym3h5-nix-shell-env \ No newline at end of file diff --git a/.direnv/flake-profile-4-link b/.direnv/flake-profile-4-link new file mode 120000 index 0000000..4c0a204 --- /dev/null +++ b/.direnv/flake-profile-4-link @@ -0,0 +1 @@ +/nix/store/amb6zvwfmy0l7yfdhrfaclcy4997fy03-nix-shell-env \ No newline at end of file diff --git a/devenv.nix b/devenv.nix new file mode 100644 index 0000000..9474a74 --- /dev/null +++ b/devenv.nix @@ -0,0 +1,23 @@ +{ + name = "hotel-manager"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + }; + + packages = [ + pkgs.nodePackages."@angular/cli" + pkgs.git + pkgs.bun + ]; + + services.ng-serve = { + description = "Angular Development Server"; + start = '' + echo "Starting Angular server..." + ng serve --host 0.0.0.0 --port 4200 + ''; + restartIfChanged = true; + after = [ "network-online.target" ]; + }; +} diff --git a/src/app/app.component.html b/src/app/app.component.html index ccd0872..4d40811 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,4 +1,6 @@
- + @if (hotel.hotelName.includes(search)) { + + }