From a0e072a3c10d1bf2bff6e904d332d74489fdcae5 Mon Sep 17 00:00:00 2001 From: TheCodedProf Date: Sat, 22 Apr 2023 19:57:56 -0400 Subject: [PATCH 1/3] added pm2 ecosystem file --- .eslintignore | 1 + ecosystem.config.cjs | 7 +++++++ flake.nix | 7 +++++-- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 ecosystem.config.cjs diff --git a/.eslintignore b/.eslintignore index a753b6e..f7770da 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,2 +1,3 @@ ClicksMigratingProblems/**/* src/reflex/nsfwjs/**/* +ecosystem.config.cjs \ No newline at end of file diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs new file mode 100644 index 0000000..008da4f --- /dev/null +++ b/ecosystem.config.cjs @@ -0,0 +1,7 @@ +module.exports = { + apps: [{ + name: "Nucleus", + script: "/run/current-system/sw/bin/nix", + args: "develop --command yarn start --update-commands", + }], +} \ No newline at end of file diff --git a/flake.nix b/flake.nix index bdbd76c..741a2bd 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ { description = "A basic flake with a shell"; - inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11"; inputs.flake-utils.url = "github:numtide/flake-utils"; outputs = { self, nixpkgs, flake-utils }: @@ -9,6 +9,9 @@ in { devShells.default = pkgs.mkShell { packages = [ pkgs.nodejs-19_x pkgs.nodePackages_latest.yarn ]; + shellHook = '' + unset name + ''; }; }); -} +} \ No newline at end of file From 92a2a1a272e7f54aa12fc562da1c2ef9d0413843 Mon Sep 17 00:00:00 2001 From: TheCodedProf Date: Sat, 22 Apr 2023 19:58:18 -0400 Subject: [PATCH 2/3] prettier --- ecosystem.config.cjs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs index 008da4f..c101672 100644 --- a/ecosystem.config.cjs +++ b/ecosystem.config.cjs @@ -1,7 +1,9 @@ module.exports = { - apps: [{ - name: "Nucleus", - script: "/run/current-system/sw/bin/nix", - args: "develop --command yarn start --update-commands", - }], -} \ No newline at end of file + apps: [ + { + name: "Nucleus", + script: "/run/current-system/sw/bin/nix", + args: "develop --command yarn start --update-commands" + } + ] +}; From 9481e6619623dbecc6720b867ff3edb0ed84dfdd Mon Sep 17 00:00:00 2001 From: TheCodedProf Date: Sat, 22 Apr 2023 19:59:55 -0400 Subject: [PATCH 3/3] updated flake.lock --- flake.lock | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/flake.lock b/flake.lock index f30c0f6..8fd890f 100644 --- a/flake.lock +++ b/flake.lock @@ -1,12 +1,15 @@ { "nodes": { "flake-utils": { + "inputs": { + "systems": "systems" + }, "locked": { - "lastModified": 1676283394, - "narHash": "sha256-XX2f9c3iySLCw54rJ/CZs+ZK6IQy7GXNY4nSOyu2QG4=", + "lastModified": 1681202837, + "narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=", "owner": "numtide", "repo": "flake-utils", - "rev": "3db36a8b464d0c4532ba1c7dda728f4576d6d073", + "rev": "cfacdce06f30d2b68473a46042957675eebb3401", "type": "github" }, "original": { @@ -17,16 +20,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1677852945, - "narHash": "sha256-liiVJjkBTuBTAkRW3hrI8MbPD2ImYzwUpa7kvteiKhM=", + "lastModified": 1682134069, + "narHash": "sha256-TnI/ZXSmRxQDt2sjRYK/8j8iha4B4zP2cnQCZZ3vp7k=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "f5ffd5787786dde3a8bf648c7a1b5f78c4e01abb", + "rev": "fd901ef4bf93499374c5af385b2943f5801c0833", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixpkgs-unstable", + "ref": "nixos-22.11", "repo": "nixpkgs", "type": "github" } @@ -36,8 +39,23 @@ "flake-utils": "flake-utils", "nixpkgs": "nixpkgs" } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } } }, "root": "root", "version": 7 -} +} \ No newline at end of file