winboat: Override nodejs version with old stable

This commit is contained in:
SebastianStork 2025-11-26 20:26:30 +01:00
parent 636b83ccf5
commit ca11d86762
Signed by: SebastianStork
SSH key fingerprint: SHA256:iEM011ogNMG1q8+U500adGu/9rpPuZ2KnFtbdLeqTiI
3 changed files with 28 additions and 1 deletions

17
flake.lock generated
View file

@ -236,6 +236,22 @@
"type": "github"
}
},
"nixpkgs-old": {
"locked": {
"lastModified": 1763948260,
"narHash": "sha256-dY9qLD0H0zOUgU3vWacPY6Qc421BeQAfm8kBuBtPVE0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "1c8ba8d3f7634acac4a2094eef7c32ad9106532c",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-25.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1763835633,
@ -280,6 +296,7 @@
"impermanence": "impermanence",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",
"nixpkgs-old": "nixpkgs-old",
"nixpkgs-unstable": "nixpkgs-unstable",
"radicale-birthday-calendar": "radicale-birthday-calendar",
"sops": "sops",

View file

@ -6,6 +6,8 @@
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-old.url = "github:nixos/nixpkgs/nixos-25.05";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
impermanence.url = "github:nix-community/impermanence";

View file

@ -1,5 +1,6 @@
{
config,
inputs,
pkgs,
pkgs-unstable,
lib,
@ -12,6 +13,13 @@
virtualisation.docker.enable = true;
users.users.seb.extraGroups = [ config.users.groups.docker.name ];
environment.systemPackages = [ (pkgs-unstable.winboat.override { nodejs_24 = pkgs.nodejs_24; }) ];
environment.systemPackages =
let
pkgs-old = import inputs.nixpkgs-old {
inherit (pkgs.stdenv.hostPlatform) system;
inherit (config.nixpkgs) config;
};
in
[ (pkgs-unstable.winboat.override { nodejs_24 = pkgs-old.nodejs_24; }) ];
};
}