idx adjustments

This commit is contained in:
bergere 2024-07-26 12:36:05 +00:00
parent 04e2065cef
commit 8d6a662c71
4 changed files with 61 additions and 3 deletions

58
.idx/dev.nix Normal file
View File

@ -0,0 +1,58 @@
# To learn more about how to use Nix to configure your environment
# see: https://developers.google.com/idx/guides/customize-idx-env
{ pkgs, ... }: {
# Which nixpkgs channel to use.
channel = "unstable"; # or "unstable"
# Use https://search.nixos.org/packages to find packages
packages = [
pkgs.go
pkgs.gnumake
pkgs.zsh
# pkgs.python311
# pkgs.python311Packages.pip
# pkgs.nodejs_20
# pkgs.nodePackages.nodemon
];
# Sets environment variables in the workspace
env = {};
idx = {
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
extensions = [
"golang.go"
"wesbos.theme-cobalt2"
];
# Enable previews
previews = {
enable = true;
previews = {
# web = {
# # Example: run "npm run dev" with PORT set to IDX's defined port for previews,
# # and show it in IDX's web preview panel
# command = ["npm" "run" "dev"];
# manager = "web";
# env = {
# # Environment variables to set for your server
# PORT = "$PORT";
# };
# };
};
};
# Workspace lifecycle hooks
workspace = {
# Runs when a workspace is first created
onCreate = {
# Example: install JS dependencies from NPM
go-tidy = "go tidy";
};
# Runs when the workspace is (re)started
onStart = {
# Example: start a background task to watch and re-build backend code
# watch-backend = "npm run watch-backend";
};
};
};
}

View File

@ -31,7 +31,7 @@ processes:
condition: process_completed_successfully
process5:
command: "python3 -c 'print(str(4+5))'"
command: "echo 9"
availability:
restart: "on_failure"
backoff_seconds: 1

View File

@ -8,7 +8,7 @@ environment:
log_location: ./pc.log
disable_env_expansion: false
shell:
shell_command: "zsh"
shell_command: "bash"
shell_argument: "-c"
vars:
HI: Cool Dude

View File

@ -18,7 +18,7 @@ environment:
- 'ABC=222'
log_location: ./pc.log
shell:
shell_command: "zsh"
shell_command: "bash"
shell_argument: "-c"
processes: