Add overlay for bun JS runtime version 1.0.1, install bun to user profile

This commit is contained in:
James Eversole 2023-09-14 18:25:30 -05:00
parent e9decbda68
commit b9dd334aca
3 changed files with 17 additions and 1 deletions

View File

@ -64,6 +64,7 @@
./nix/system/nix-conf.nix
./nix/system/network.nix
./nix/system/openvpn.nix
./nix/system/overlays.nix
./nix/system/security.nix
./nix/system/system.nix
./nix/system/virtualisation.nix

15
nix/system/overlays.nix Normal file
View File

@ -0,0 +1,15 @@
{ config, lib, pkgs, ... }:
{
nixpkgs.overlays = [
(final: prev: {
bun = prev.bun.overrideAttrs (old: rec {
name = "bun-${version}";
version = "1.0.1";
src = pkgs.fetchurl {
url = "https://github.com/oven-sh/bun/releases/download/bun-v${version}/bun-linux-x64.zip";
sha256 = "sha256-RmgnWTG6kTebYwIa/VAwvvJmbL+ARNC+HkbF4mJPF7o=";
};
});
})
];
}

View File

@ -7,7 +7,7 @@
isNormalUser = true;
passwordFile = config.age.secrets.sezycei.path;
extraGroups = [ "wheel" "nginx" ];
packages = with pkgs; [ byobu tmux stack ];
packages = with pkgs; [ bun byobu tmux stack ];
};
cridycei = {