nodejs installs

This commit is contained in:
jaina heartles 2024-02-25 16:23:08 -08:00
parent fe66d2b325
commit c482dc03fd
3 changed files with 24 additions and 2 deletions

View File

@ -35,7 +35,24 @@
"root": {
"inputs": {
"nixpkgs": "nixpkgs",
"nixpkgs-23.05": "nixpkgs-23.05"
"nixpkgs-23.05": "nixpkgs-23.05",
"unstable": "unstable"
}
},
"unstable": {
"locked": {
"lastModified": 1708807242,
"narHash": "sha256-sRTRkhMD4delO/hPxxi+XwLqPn8BuUq6nnj4JqLwOu0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "73de017ef2d18a04ac4bfd0c02650007ccb31c2a",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
}
},

View File

@ -2,15 +2,17 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
"nixpkgs-23.05".url = "github:NixOS/nixpkgs/nixos-23.05";
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, ... }@attrs: {
outputs = { self, nixpkgs, unstable, ... }@attrs: {
nixosConfigurations."egirls" = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
pkgs = let
cfg = {
inherit system;
config.allowUnfree = true;
overlays = [ (final: prev: { unstable = import unstable cfg; }) ];
};
in import nixpkgs cfg;

View File

@ -65,4 +65,7 @@
'';
};
};
environment.systemPackages = let nodejs = pkgs.unstable.nodejs_20;
in with pkgs; [ (nodePackages.override { inherit nodejs; }).pnpm nodejs ];
}