init
This commit is contained in:
28
modules/nixos/parsec.nix
Normal file
28
modules/nixos/parsec.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
# Module: Parsec Cloud Client
|
||||
# Description: Installs Parsec Cloud client (v3) with CLI and GUI
|
||||
# Dependencies: parsec-cloud-nix flake input
|
||||
# Note: Requires increased Node.js heap size during build (workaround)
|
||||
|
||||
{ pkgs, parsec-cloud-nix, ... }:
|
||||
|
||||
let
|
||||
pc = parsec-cloud-nix.packages.${pkgs.stdenv.hostPlatform.system};
|
||||
|
||||
# WORKAROUND: Parsec build runs out of memory without increased heap size
|
||||
# This increases Node.js memory limit from default 512MB to 8GB
|
||||
nativeBuildPatched = pc.parsec-cloud.v3.native-client-build.overrideAttrs (old: {
|
||||
NODE_OPTIONS = "--max-old-space-size=8192";
|
||||
});
|
||||
|
||||
parsecClientPatched = pc.parsec-cloud.v3.client.override {
|
||||
native-client-build = nativeBuildPatched;
|
||||
};
|
||||
|
||||
parsecCli = pc.parsec-cloud.v3.cli;
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [
|
||||
parsecClientPatched
|
||||
parsecCli
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user