Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nix flake #3485

Merged
merged 1 commit into from
Mar 19, 2024
Merged

Add nix flake #3485

merged 1 commit into from
Mar 19, 2024

Commits on Mar 19, 2024

  1. Add nix flake

    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.
    brianmay committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    3384dd8 View commit details
    Browse the repository at this point in the history