feat: add initial flake configuration and .envrc file

This commit is contained in:
Jan Gleytenhoover 2024-09-10 07:39:18 +02:00
parent 339dac3999
commit 268ed3795c
Signed by: jank
GPG Key ID: B267751B8AE29EFE
2 changed files with 31 additions and 0 deletions

1
.envrc Normal file

@ -0,0 +1 @@
use flake

30
flake.nix Normal file

@ -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
'';
};
};
}