File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 pkgs . unzip
1010 ] ;
1111 # Sets environment variables in the workspace
12- env = { } ;
12+ env = { } ;
1313 idx = {
1414 # Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
1515 extensions = [
1616 "Dart-Code.flutter"
1717 "Dart-Code.dart-code"
1818 ] ;
1919 workspace = {
20+ onStart = {
21+ set-cm-alias = "echo \" alias cm='better-commits'\" >> ~/.bashrc" ;
22+ } ;
2023 # Runs when a workspace is first created with this `dev.nix` file
2124 onCreate = {
2225 install-better-commits = "npm i -g better-commits" ;
4245 # flutter build web --profile --dart-define=Dart2jsOptimization=O0
4346 '' ;
4447 } ;
45-
48+
4649 # To run something each time the workspace is (re)started, use the `onStart` hook
4750 } ;
4851 # Enable previews and customize configuration
4952 previews = {
5053 enable = true ;
5154 previews = {
5255 web = {
53- command = [ "flutter" "run" "--machine" "-d" "web-server" "--web-hostname" "0.0.0.0" "--web-port" "$PORT" ] ;
56+ command = [ "flutter" "run" "--machine" "-d" "web-server" "--web-hostname" "0.0.0.0" "--web-port" "$PORT" ] ;
5457 manager = "flutter" ;
5558 } ;
5659 android = {
57- command = [ "flutter" "run" "--machine" "-d" "android" "-d" "localhost:5555" ] ;
60+ command = [ "flutter" "run" "--machine" "-d" "android" "-d" "localhost:5555" ] ;
5861 manager = "flutter" ;
5962 } ;
6063 } ;
You can’t perform that action at this time.
0 commit comments