mirror of
https://github.com/js0ny/dotfiles.git
synced 2026-03-22 10:42:42 +00:00
pkgs: noname
This commit is contained in:
parent
2b403b18e4
commit
0ca532e432
9 changed files with 81 additions and 2 deletions
|
|
@ -9,5 +9,7 @@
|
||||||
SAM_CLI_TELEMETRY = "0";
|
SAM_CLI_TELEMETRY = "0";
|
||||||
AZURE_CORE_COLLECT_TELEMETRY = "0";
|
AZURE_CORE_COLLECT_TELEMETRY = "0";
|
||||||
GEMINI_TELEMETRY_ENABLED = "false";
|
GEMINI_TELEMETRY_ENABLED = "false";
|
||||||
|
SCARF_NO_ANALYTICS = "true";
|
||||||
|
ANONYMIZED_TELEMETRY = "false";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,5 +9,7 @@
|
||||||
SAM_CLI_TELEMETRY = "0";
|
SAM_CLI_TELEMETRY = "0";
|
||||||
AZURE_CORE_COLLECT_TELEMETRY = "0";
|
AZURE_CORE_COLLECT_TELEMETRY = "0";
|
||||||
GEMINI_TELEMETRY_ENABLED = "false";
|
GEMINI_TELEMETRY_ENABLED = "false";
|
||||||
|
SCARF_NO_ANALYTICS = "true";
|
||||||
|
ANONYMIZED_TELEMETRY = "false";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,6 @@ in {
|
||||||
in {
|
in {
|
||||||
"/usr/share/icons" = mkRoSymBind "${aggregated}/share/icons";
|
"/usr/share/icons" = mkRoSymBind "${aggregated}/share/icons";
|
||||||
"/usr/share/fonts" = mkRoSymBind "${aggregated}/share/fonts";
|
"/usr/share/fonts" = mkRoSymBind "${aggregated}/share/fonts";
|
||||||
"/home/js0ny/.local/share/fonts" = mkRoSymBind "${aggregated}/share/fonts";
|
# Note: Binding to $HOME is not recommended since this binding process executes before mounting $HOME
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,5 +20,6 @@
|
||||||
# enable = false;
|
# enable = false;
|
||||||
modesetting.enable = false;
|
modesetting.enable = false;
|
||||||
powerManagement.enable = false;
|
powerManagement.enable = false;
|
||||||
|
dynamicBoost.enable = false;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
68
nixcfgs/pkgs/noname/default.nix
Normal file
68
nixcfgs/pkgs/noname/default.nix
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
# https://nixos.org/manual/nixpkgs/stable/#javascript-pnpm
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
fetchFromGitHub,
|
||||||
|
fetchPnpmDeps,
|
||||||
|
pnpmConfigHook,
|
||||||
|
makeWrapper,
|
||||||
|
nodejs_22,
|
||||||
|
pnpm_10,
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "noname";
|
||||||
|
version = "v1.11.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "libnoname";
|
||||||
|
repo = "noname";
|
||||||
|
rev = finalAttrs.version;
|
||||||
|
hash = "sha256-w4PGPH2EWNq0wJwLCQeKzV63HjZ8qyLfABvZHGP8oeI=";
|
||||||
|
};
|
||||||
|
|
||||||
|
pnpmRoot = ".";
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
nodejs_22
|
||||||
|
pnpm_10
|
||||||
|
pnpmConfigHook
|
||||||
|
makeWrapper
|
||||||
|
];
|
||||||
|
|
||||||
|
pnpmDeps = fetchPnpmDeps {
|
||||||
|
inherit (finalAttrs) pname version src pnpmRoot;
|
||||||
|
pnpm = pnpm_10;
|
||||||
|
fetcherVersion = 3;
|
||||||
|
hash = "sha256-1BVkAQut9KfYpduKxBuOoRtHBqh8rbywFC8VnbGCrA0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
pnpmInstallFlags = ["--frozen-lockfile"];
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
pnpm -C ${finalAttrs.pnpmRoot} build:full
|
||||||
|
runHook postBuild
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/share/noname
|
||||||
|
cp -r ./* $out/share/noname
|
||||||
|
|
||||||
|
# wrapper:noname-server -> node dist/noname-server.cjs
|
||||||
|
mkdir -p $out/bin
|
||||||
|
makeWrapper ${nodejs_22}/bin/node $out/bin/noname-server \
|
||||||
|
--add-flags "$out/share/noname/dist/noname-server.cjs" \
|
||||||
|
--chdir "$out/share/noname/dist"
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "noname (libnoname/noname) packaged from tag source; runs dist/noname-server.cjs";
|
||||||
|
homepage = "https://github.com/libnoname/noname";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
@ -64,6 +64,7 @@
|
||||||
aria2
|
aria2
|
||||||
gocryptfs
|
gocryptfs
|
||||||
uv
|
uv
|
||||||
|
opencode
|
||||||
]
|
]
|
||||||
++ (
|
++ (
|
||||||
if pkgs.stdenv.isDarwin
|
if pkgs.stdenv.isDarwin
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
|
noname = pkgs.callPackage ../../../pkgs/noname/default.nix {};
|
||||||
mergetools = import ../lib/mergetools.nix {inherit pkgs lib config;};
|
mergetools = import ../lib/mergetools.nix {inherit pkgs lib config;};
|
||||||
mkMergedJson = mergetools.mkMergedJson;
|
mkMergedJson = mergetools.mkMergedJson;
|
||||||
mkMergedIni = mergetools.mkMergedIni;
|
mkMergedIni = mergetools.mkMergedIni;
|
||||||
|
|
@ -113,6 +114,8 @@ in {
|
||||||
|
|
||||||
# Memory Scanner (Cheat Engine Alt.)
|
# Memory Scanner (Cheat Engine Alt.)
|
||||||
scanmem
|
scanmem
|
||||||
|
|
||||||
|
noname
|
||||||
];
|
];
|
||||||
imports = [
|
imports = [
|
||||||
../programs/retroarch.nix
|
../programs/retroarch.nix
|
||||||
|
|
|
||||||
|
|
@ -114,6 +114,7 @@ in {
|
||||||
fsearch # Everything-like search tool
|
fsearch # Everything-like search tool
|
||||||
kdePackages.elisa
|
kdePackages.elisa
|
||||||
showmethekey
|
showmethekey
|
||||||
|
readest
|
||||||
|
|
||||||
# Use Wayland for Jetbrains
|
# Use Wayland for Jetbrains
|
||||||
# (jetbrains.idea-ultimate.override {
|
# (jetbrains.idea-ultimate.override {
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,8 @@ in {
|
||||||
"x-scheme-handler/tonsite"
|
"x-scheme-handler/tonsite"
|
||||||
]
|
]
|
||||||
// mkAssoc archiveManager archive
|
// mkAssoc archiveManager archive
|
||||||
// mkAssoc "mpv.desktop" video;
|
// mkAssoc "mpv.desktop" video
|
||||||
|
// {"application/epub+zip" = "com.github.johnfactotum.Foliate.desktop";};
|
||||||
};
|
};
|
||||||
home.sessionVariables.BROWSER = "firefox";
|
home.sessionVariables.BROWSER = "firefox";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue