Compare commits
2 Commits
fbeb39ec22
...
42cd0849b4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
42cd0849b4 | ||
|
|
47b622745d |
8
flake.lock
generated
8
flake.lock
generated
@@ -39,16 +39,16 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770875904,
|
"lastModified": 1770961864,
|
||||||
"narHash": "sha256-8ZEVlGe1saA/2KtDTKgkwWfpLCbxfwFip+m+3FlQQK0=",
|
"narHash": "sha256-U8hx8MeyhCe+o3uj3GL3LbkkFkduvxVtPgZeVGoIE0s=",
|
||||||
"owner": "anomalyco",
|
"owner": "anomalyco",
|
||||||
"repo": "opencode",
|
"repo": "opencode",
|
||||||
"rev": "03de51bd3cf9e05bd92c9f51763b74a3cdfbe61a",
|
"rev": "34ebe814ddd130a787455dda089facb23538ca20",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "anomalyco",
|
"owner": "anomalyco",
|
||||||
"ref": "v1.1.60",
|
"ref": "v1.1.65",
|
||||||
"repo": "opencode",
|
"repo": "opencode",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|||||||
36
flake.nix
36
flake.nix
@@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
description =
|
description = "m3ta's personal Nix repository - Custom packages, overlays, and modules";
|
||||||
"m3ta's personal Nix repository - Custom packages, overlays, and modules";
|
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
@@ -8,16 +7,18 @@
|
|||||||
|
|
||||||
# opencode needs newer bun from master
|
# opencode needs newer bun from master
|
||||||
opencode = {
|
opencode = {
|
||||||
url = "github:anomalyco/opencode/v1.1.60";
|
url = "github:anomalyco/opencode/v1.1.65";
|
||||||
inputs.nixpkgs.follows = "nixpkgs-master";
|
inputs.nixpkgs.follows = "nixpkgs-master";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, ... }@inputs:
|
outputs = {
|
||||||
let
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
...
|
||||||
|
} @ inputs: let
|
||||||
# Supported systems
|
# Supported systems
|
||||||
systems =
|
systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
|
||||||
[ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
|
||||||
|
|
||||||
# Helper function to generate an attrset for each of the systems
|
# Helper function to generate an attrset for each of the systems
|
||||||
forAllSystems = nixpkgs.lib.genAttrs systems;
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
||||||
@@ -30,9 +31,10 @@
|
|||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
# Custom packages - accessible via 'nix build .#package-name'
|
# Custom packages - accessible via 'nix build .#package-name'
|
||||||
packages = forAllSystems (system:
|
packages = forAllSystems (system: let
|
||||||
let pkgs = pkgsFor system;
|
pkgs = pkgsFor system;
|
||||||
in import ./pkgs { inherit pkgs inputs; });
|
in
|
||||||
|
import ./pkgs {inherit pkgs inputs;});
|
||||||
|
|
||||||
# Overlays - can be imported in your system configuration
|
# Overlays - can be imported in your system configuration
|
||||||
overlays = {
|
overlays = {
|
||||||
@@ -69,16 +71,18 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Library functions - helper utilities for your configuration
|
# Library functions - helper utilities for your configuration
|
||||||
lib = forAllSystems (system:
|
lib = forAllSystems (system: let
|
||||||
let pkgs = pkgsFor system;
|
pkgs = pkgsFor system;
|
||||||
in import ./lib { lib = pkgs.lib; });
|
in
|
||||||
|
import ./lib {lib = pkgs.lib;});
|
||||||
|
|
||||||
# Development shells for various programming environments
|
# Development shells for various programming environments
|
||||||
# Usage: nix develop .#<shell-name>
|
# Usage: nix develop .#<shell-name>
|
||||||
# Available shells: default, python, devops
|
# Available shells: default, python, devops
|
||||||
devShells = forAllSystems (system:
|
devShells = forAllSystems (system: let
|
||||||
let pkgs = pkgsFor system;
|
pkgs = pkgsFor system;
|
||||||
in import ./shells { inherit pkgs; });
|
in
|
||||||
|
import ./shells {inherit pkgs;});
|
||||||
|
|
||||||
# Formatter for 'nix fmt'
|
# Formatter for 'nix fmt'
|
||||||
formatter = forAllSystems (system: (pkgsFor system).alejandra);
|
formatter = forAllSystems (system: (pkgsFor system).alejandra);
|
||||||
|
|||||||
@@ -18,20 +18,20 @@
|
|||||||
}:
|
}:
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "n8n";
|
pname = "n8n";
|
||||||
version = "n8n@2.7.4";
|
version = "n8n@2.8.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "n8n-io";
|
owner = "n8n-io";
|
||||||
repo = "n8n";
|
repo = "n8n";
|
||||||
tag = finalAttrs.version;
|
tag = finalAttrs.version;
|
||||||
hash = "sha256-liRB5BO738gvEpAsDaK632w38S0cDkI9DWnTLaEf0E0=";
|
hash = "sha256-Rx/wjNWHcGmsnw7KU/uh1GaXZA6WhRyip16+iji5bO8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
pnpmDeps = fetchPnpmDeps {
|
pnpmDeps = fetchPnpmDeps {
|
||||||
inherit (finalAttrs) pname version src;
|
inherit (finalAttrs) pname version src;
|
||||||
pnpm = pnpm_10;
|
pnpm = pnpm_10;
|
||||||
fetcherVersion = 3;
|
fetcherVersion = 3;
|
||||||
hash = "sha256-s6l049slBJCP6qCgY/uLNuIVDNuUmiTUX94sKDi+86g=";
|
hash = "sha256-gX4pYiztKIRFbJNZhtQviWpp80teOzX1JaYKylGe4TY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs =
|
nativeBuildInputs =
|
||||||
|
|||||||
Reference in New Issue
Block a user