Skip to content

Commit

Permalink
electron
Browse files Browse the repository at this point in the history
  • Loading branch information
coredev-uk committed Sep 26, 2024
1 parent b87a420 commit 12affcc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions home/common/dev/base.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{ pkgs, ... }:

let
electron-env = pkgs.writeShellScriptBin "electron-env" ''
export LD_LIBRARY_PATH=$(for pkg in glib.out nss nspr dbus.lib atk cups.lib libdrm.out gtk3 cairo pango.out xorg.libX11 xorg.libXcomposite xorg.libXdamage xorg.libXext xorg.libXfixes xorg.libXrandr xorg.libxcb mesa expat libxkbcommon alsa-lib libGL; do nix build --print-out-paths --no-link nixpkgs#$pkg; done | awk '{print $1"/lib"}' | tr '\n' ':' | sed 's/:$//')
'';
in
{
home.packages = with pkgs; [
gnumake
Expand All @@ -14,6 +20,7 @@
fnm

# Electron
electron-env
dpkg
fakeroot
rpm
Expand Down
8 changes: 4 additions & 4 deletions home/common/shell/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
zstyle ':completion:*' list-colors "''${(s.:.)LS_COLORS}"
export EDITOR=vim
eval "$(nh completions --shell zsh)" # nix-home completions
'';

Expand All @@ -53,9 +53,9 @@
speedtest = "curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -";

cleanup-nix = "nh clean all --keep-since 10d --keep 3";
rln = "nh os switch ${flakePath}";
rlh = "nh home switch ${flakePath}";
rlb = "rln;rlh";
reb-os = "nh os switch ${flakePath}";
reb-home = "nh home switch ${flakePath}";
reb-all = "reb-os;reb-home";
};
};
};
Expand Down

0 comments on commit 12affcc

Please sign in to comment.