commit 2727bbc4e64bca8d1f056ee2a164e83ae11bc2ce Author: efim Date: Sun Jun 25 12:18:37 2023 +0000 init: repo with steps of learning htmx diff --git a/.direnv/nix-profile-unknown b/.direnv/nix-profile-unknown new file mode 120000 index 0000000..6e0edc0 --- /dev/null +++ b/.direnv/nix-profile-unknown @@ -0,0 +1 @@ +/home/enefedov/Documents/personal/learning-htmx/.direnv/flake-profile.2814263 \ No newline at end of file diff --git a/.direnv/nix-profile-unknown.rc b/.direnv/nix-profile-unknown.rc new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/.direnv/nix-profile-unknown.rc @@ -0,0 +1 @@ + diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..1d953f4 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..04fe283 --- /dev/null +++ b/flake.lock @@ -0,0 +1,60 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1681202837, + "narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "cfacdce06f30d2b68473a46042957675eebb3401", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1683968890, + "narHash": "sha256-FuNtjMvT07cJydY5NRyRhIni/dEwkSkijmFEdsmqdkA=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "ea11a3977f4cba013d8680667616be827c967ac0", + "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 0000000..faf1ef6 --- /dev/null +++ b/flake.nix @@ -0,0 +1,20 @@ +{ + description = "learning htmx"; + inputs.nixpkgs.url = "github:nixos/nixpkgs"; + inputs.flake-utils.url = "github:numtide/flake-utils"; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem + (system: + let pkgs = nixpkgs.legacyPackages.${system}; in + { + devShells.default = pkgs.mkShell { + buildInputs = [ + pkgs.sbt + pkgs.scalafmt + ]; + }; + } + ); + # see https://serokell.io/blog/practical-nix-flakes +}