badele / nix-projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nix-projects

Nix installation

Before using this project and if you not have the Nix/NixOS, your must install it

Below command install nix and flake tool

# linux/windows
sh <(curl -L https://nixos.org/nix/install) --daemon
grep 'experimental-features' /etc/nix/nix.conf || (echo 'experimental-features = nix-command flakes' >> /etc/nix/nix.conf)

# macos 
sh <(curl -L https://nixos.org/nix/install)
grep 'experimental-features' /etc/nix/nix.conf || (echo 'experimental-features = nix-command flakes' >> /etc/nix/nix.conf)

Project initialisation

Github

  • From github website, create repository (without enabled "Initialize this repository with")
  • Enable Read and write permissions on the Workflow permission section
nix flake new -t "github:badele/nix-projects#minimal" your-project-name
cd your-project-name
sh init_project
nix develop

Debug locally template

cd .. && rm -rf test
nix flake new -t "git+file:///home/badele/ghq/github.com/badele/nix-projects#deno" test
cd test; sh init_project
git remote add origin git@github.com:badele/test.git
git commit -m 'feat: init project'
git push -u origin main --force

Project

Project Description
deno deno project + CI
deno-module deno module project + CI
minimal minimal project + CI
scala scala project + CI

About


Languages

Language:Nix 38.0%Language:Shell 34.5%Language:Just 13.5%Language:TypeScript 9.7%Language:Scala 4.2%