From 268ed3795c3ad9455d01479a1bd3c67411048796 Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Tue, 10 Sep 2024 07:39:18 +0200 Subject: [PATCH] feat: add initial flake configuration and .envrc file --- .envrc | 1 + flake.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .envrc create mode 100644 flake.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..0e612b3 --- /dev/null +++ b/flake.nix @@ -0,0 +1,30 @@ +{ + description = "Hotel-Manager"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + }; + + outputs = { self, nixpkgs, ... }: + let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in + { + devShells.${system}.default = + pkgs.mkShell + { + buildInputs = [ + pkgs.nodePackages."@angular/cli" + pkgs.git + ]; + + RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; + + shellHook = '' +export CARGO_HOME=$HOME/.cargo +export RUSTUP_HOME=$HOME/.rustup + ''; + }; + }; +}