diff --git a/.envrc b/.envrc new file mode 100644 index 000000000..3550a30f2 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore index 8821d8ce1..fc64bc09a 100644 --- a/.gitignore +++ b/.gitignore @@ -78,3 +78,5 @@ docs/venv # docker stuff docker-db *.iml + +.direnv/ diff --git a/flake.lock b/flake.lock new file mode 100644 index 000000000..38f151cbb --- /dev/null +++ b/flake.lock @@ -0,0 +1,60 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1689068808, + "narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1690093378, + "narHash": "sha256-Wq0wu7Hcgn0BmFytKe8Rr/I0aE3EMHogfcNlfzAOnYY=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "aaa81c17a890939c921fc0a4b7f5349092d068c1", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 000000000..56ad90a4a --- /dev/null +++ b/flake.nix @@ -0,0 +1,29 @@ +{ + description = "Akkoma dev flake"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { + self, + nixpkgs, + flake-utils, + }: + flake-utils.lib.eachDefaultSystem (system: let + pkgs = import nixpkgs {inherit system;}; + in { + formatter = pkgs.alejandra; + devShells.default = pkgs.mkShell { + buildInputs = with pkgs; [ + file + ]; + nativeBuildInputs = with pkgs; [ + elixir + cmake + libxcrypt + ]; + }; + }); +}