Add package files
diff --git a/packages/anytype/default.nix b/packages/anytype/default.nix
new file mode 100644
index 0000000..fe7a03a
--- /dev/null
+++ b/packages/anytype/default.nix
@@ -0,0 +1,15 @@
+let
+ version = "51995916";
+ buildNumber = "51995916";
+in { pkgs ? import <nixpkgs> {} }:
+pkgs.appimageTools.wrapType2 {
+ name = "Anytype";
+ version = version;
+ src = pkgs.fetchurl {
+ url = "https://download.anytype.io/?action=download&key=desktop&id=51995916";
+ sha256 = "sha256-28qgTWCQrFCREGNfj8bePocEpB+0AZfrKNO4akn7/5I=";
+ name = version + ".appimage";
+ };
+
+ extraPkgs = pkgs: with pkgs; [ libsecret xdg-desktop-portal hicolor-icon-theme ];
+}
diff --git a/packages/anytype/result b/packages/anytype/result
new file mode 120000
index 0000000..0399fef
--- /dev/null
+++ b/packages/anytype/result
@@ -0,0 +1 @@
+/nix/store/l1nr15d27mjdzrn0wi26ihdh3sjd3gdg-Anytype
\ No newline at end of file
diff --git a/packages/nodejs/default.nix b/packages/nodejs/default.nix
new file mode 100644
index 0000000..d135bbd
--- /dev/null
+++ b/packages/nodejs/default.nix
@@ -0,0 +1,28 @@
+let
+ version = "17.3.0";
+in { nixpkgs ? import <nixpkgs> {}, stdenv }: {
+ inherit version;
+
+ name = "nodejs-${version}";
+ src = nixpkgs.fetchurl {
+ url = "https://nodejs.org/dist/v${version}/node-v${version}${if stdenv.isDarwin then "-darwin-x64" else "-linux-x64"}.tar.xz"; # this darwin/linux check doesn't work since sha is different for packages
+ };
+
+ # Dependencies for building node.js (Python and utillinux on Linux, just Python on Mac)
+ buildInputs = with nixpkgs; [ xcbuild binutils-unwrapped patchelf glib python37 ] ++ stdenv.lib.optional stdenv.isLinux utillinux;
+ nativeBuildInputs = with nixpkgs; [ autoPatchelfHook ];
+
+ installPhase = ''
+ echo "installing nodejs"
+ mkdir -p $out
+ cp -r ./ $out/
+ '';
+
+ meta = with stdenv.lib; {
+ description = "Event-driven I/O framework for the V8 JavaScript engine";
+ homepage = "https://nodejs.org";
+ license = licenses.mit;
+ };
+
+ passthru.python = nixpkgs.python37;
+}
diff --git a/system/configuration.nix b/system/configuration.nix
index ee4a170..d8619d4 100644
--- a/system/configuration.nix
+++ b/system/configuration.nix
@@ -149,6 +149,7 @@
keybase-gui
kbfs
bluez
+ cachix
];
# environment.systemPackages = [
diff --git a/system/packaging-configuration.nix b/system/packaging-configuration.nix
index 6ea58ea..893804d 100644
--- a/system/packaging-configuration.nix
+++ b/system/packaging-configuration.nix
@@ -4,6 +4,7 @@
# Prepend default nixPath values.
options.nix.nixPath.default ++
# Append our nixpkgs-overlays.
- [ "nixpkgs-overlays=/etc/nixos/overlays/" ]
- ;
+ [ "nixpkgs-overlays=/etc/nixos/overlays/" ];
+
+ imports = [ ./cachix.nix ];
}