mirror of
https://github.com/netfun2000/hipudding-teslamate.git
synced 2026-02-27 09:44:28 +08:00
2b5cdbdffd
This will add support for nix flakes. Which really helps with my development on nixos. This has two basic parts: 1. DEVELOPMENT After this you can use the following commands on computer with nix and a patched version of direnv: direnv allow devenv up And it will automatically start and instance of postgresql and mosquitto for development. And the environment variables are already configured for teslamate. So then can start teslamate with: npm install --prefix ./assets && npm run deploy --prefix ./assets iex -S mix phx.server This part is all working as designed. And pretty simple and straight forward. 2. NIX PACKAGE OF TESLA This is 99% complete, but some pain points I haven't addressed yet. Because I don't yet know of good solutions. * There are two checksums in flake.nix that needs to be updated whenever mix.lock or package-lock.json changes.
73 lines
1.4 KiB
Plaintext
73 lines
1.4 KiB
Plaintext
# The directory Mix will write compiled artifacts to.
|
|
/_build/
|
|
|
|
# If you run "mix test --cover", coverage assets end up here.
|
|
/cover/
|
|
|
|
# The directory Mix downloads your dependencies sources to.
|
|
/deps/
|
|
|
|
# Where 3rd-party dependencies like ExDoc output generated docs.
|
|
/doc/
|
|
|
|
# Ignore .fetch files in case you like to edit your project deps locally.
|
|
/.fetch
|
|
|
|
# If the VM crashes, it generates a dump, let's ignore it too.
|
|
erl_crash.dump
|
|
|
|
# Also ignore archive artifacts (built via "mix archive.build").
|
|
*.ez
|
|
|
|
# Ignore package tarball (built via "mix hex.build").
|
|
tesla_mate-*.tar
|
|
|
|
# If NPM crashes, it generates a log, let's ignore it too.
|
|
npm-debug.log
|
|
|
|
# The directory NPM downloads your dependencies sources to.
|
|
/assets/node_modules/
|
|
|
|
# Ignore assets that are produced by build tools.
|
|
/priv/static/assets/
|
|
|
|
# Ignore digested assets cache.
|
|
/priv/static/cache_manifest.json
|
|
|
|
# CDLR data repository
|
|
/priv/cldr/
|
|
|
|
# Files matching config/*.secret.exs pattern contain sensitive
|
|
# data and you should not commit them into version control.
|
|
#
|
|
# Alternatively, you may comment the line below and commit the
|
|
# secrets files as long as you replace their contents by environment
|
|
# variables.
|
|
/config/*.secret.exs
|
|
config/*.env
|
|
.env
|
|
|
|
/import/
|
|
.srtm_cache/
|
|
|
|
# Make sure IDE files don't get committed to the repo
|
|
.idea/
|
|
.eclipse/
|
|
.elixir_ls/
|
|
/.project
|
|
|
|
# Mac files
|
|
.DS_Store
|
|
|
|
/priv/plts/*.plt
|
|
/priv/plts/*.plt.hash
|
|
|
|
# Nix files
|
|
/.direnv
|
|
/.devenv
|
|
/tzdata/
|
|
/result
|
|
|
|
# Used during tests
|
|
/tmp/
|