imnyang/nix-flakes
Watch
1
0
Fork
You've already forked nix-flakes
0
This commit is contained in:
암냥 2026-10-04 12:59:42 +09:00
commit ef437d5b15
No known key found for this signature in database
18 changed files with 222 additions and 86 deletions

29
modules/home/alcom.nix Normal file
View 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
];
}

View file

@ -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;

View file

@ -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 ++ [

View file

@ -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"

View file

@ -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.