wow
This commit is contained in:
parent
7d47819b9c
commit
ef437d5b15
18 changed files with 222 additions and 86 deletions
29
modules/home/alcom.nix
Normal file
29
modules/home/alcom.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
alcomFhs = pkgs.symlinkJoin {
|
||||
name = "alcom-fhs";
|
||||
|
||||
paths = [
|
||||
pkgs.alcom
|
||||
];
|
||||
|
||||
postBuild = ''
|
||||
rm -f "$out/bin/ALCOM"
|
||||
|
||||
cat > "$out/bin/ALCOM" <<'EOF'
|
||||
#!${pkgs.runtimeShell}
|
||||
exec ${pkgs.unityhub.fhsEnv}/bin/unityhub-fhs-env \
|
||||
${pkgs.alcom}/bin/ALCOM "$@"
|
||||
EOF
|
||||
|
||||
chmod +x "$out/bin/ALCOM"
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
home.packages = [
|
||||
pkgs.unityhub
|
||||
alcomFhs
|
||||
];
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
{ pkgs, ... }: {
|
||||
programs.ghostty = {
|
||||
enable = true;
|
||||
package = if pkgs.stdenv.isDarwin then pkgs.ghostty-bin else pkgs.ghostty;
|
||||
package = if pkgs.stdenv.hostPlatform.isDarwin then pkgs.ghostty-bin else pkgs.ghostty;
|
||||
|
||||
enableFishIntegration = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ in
|
|||
|
||||
src = builtins.fetchTarball {
|
||||
url = "https://code.visualstudio.com/sha/download?build=insider&os=linux-x64";
|
||||
sha256 = "0lcx0bh0r4lsll47b45qd69871lrcwg43s903p6gddcdi9k48lav";
|
||||
sha256 = "0h09nxhlvjmc3p20khpwh4jy4618wg1pv0lz8x3ls7mkny99m25r";
|
||||
};
|
||||
|
||||
buildInputs = oldAttrs.buildInputs ++ [
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
programs.zed-editor = {
|
||||
enable = true;
|
||||
package = if pkgs.stdenv.isDarwin then null else pkgs.zed-editor;
|
||||
package = if pkgs.stdenv.hostPlatform.isDarwin then null else pkgs.zed-editor;
|
||||
extensions = [
|
||||
"nix"
|
||||
"toml"
|
||||
|
|
|
|||
|
|
@ -3,12 +3,47 @@
|
|||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
nixcordPackages = inputs.nixcord.packages.${pkgs.stdenv.hostPlatform.system};
|
||||
|
||||
patchGifenc = ''
|
||||
substituteInPlace package.json \
|
||||
--replace-fail \
|
||||
'github:mattdesl/gifenc#64842fca317b112a8590f8fef2bf3825da8f6fe3' \
|
||||
'1.0.3'
|
||||
substituteInPlace pnpm-lock.yaml \
|
||||
--replace-fail \
|
||||
'github:mattdesl/gifenc#64842fca317b112a8590f8fef2bf3825da8f6fe3' \
|
||||
'1.0.3' \
|
||||
--replace-fail \
|
||||
'https://codeload.github.com/mattdesl/gifenc/tar.gz/64842fca317b112a8590f8fef2bf3825da8f6fe3' \
|
||||
'1.0.3' \
|
||||
--replace-fail \
|
||||
'resolution: {gitHosted: true, tarball: 1.0.3}' \
|
||||
'resolution: {integrity: sha512-xdr6AdrfGBcfzncONUOlXMBuc5wJDtOueE3c5rdG0oNgtINLD+f2iFZltrBRZYzACRbKr+mSVU/x98zv2u3jmw==}'
|
||||
'';
|
||||
|
||||
refreshPnpmDeps = package: hash:
|
||||
package.overrideAttrs (old: {
|
||||
postPatch = (old.postPatch or "") + patchGifenc;
|
||||
pnpmDeps = old.pnpmDeps.overrideAttrs (deps: {
|
||||
outputHash = hash;
|
||||
outputHashAlgo = "sha256";
|
||||
postPatch = (deps.postPatch or "") + patchGifenc;
|
||||
});
|
||||
});
|
||||
in
|
||||
{
|
||||
imports = [ inputs.nixcord.homeModules.nixcord ];
|
||||
programs.nixcord = {
|
||||
enable = true;
|
||||
# Use Nixcord's pinned package set; the host package set's pnpm hook
|
||||
# cannot consume the Equicord Git tarball snapshot offline.
|
||||
useGlobalPkgs = false;
|
||||
|
||||
discord = {
|
||||
vencord.package = refreshPnpmDeps nixcordPackages.vencord "sha256-Me4M6ATfnTMifltjeCl/zn/qUrBUwOJuWkrCPw4VU5Q=";
|
||||
equicord.package = refreshPnpmDeps nixcordPackages.equicord "sha256-wXQg11c6EUT0xFlP1pYwMNzdVKdg5Gv3gcdolDrnGCk=";
|
||||
branches = [ "stable" ];
|
||||
# Electron's Vulkan backend crashes on the NVIDIA render node under
|
||||
# native Wayland. Keep Wayland and hardware acceleration, but use GL.
|
||||
|
|
|
|||
Loading…
Reference in a new issue