gptk stuff, exa -> eza

This commit is contained in:
willemml 2023-09-24 21:53:28 -07:00
parent f23a8150d1
commit 2f6fd3f34f
Signed by: willemml
GPG key ID: C3DE5DF6198DACBD
6 changed files with 25 additions and 50 deletions

View file

@ -20,17 +20,23 @@
pinentry = "${pkgs.pinentry-mac}/bin/pinentry-mac"; pinentry = "${pkgs.pinentry-mac}/bin/pinentry-mac";
}; };
programs.zsh.envExtra = '' programs.zsh.envExtra =
export WINEPREFIX="${config.home.homeDirectory}/.gptk_wineprefix" /*
sh
*/
''
export WINEPREFIX="${config.home.homeDirectory}/.gptk_wineprefix"
if [ "$(arch)" = "arm64" ]; then if [ "$(arch)" = "arm64" ]; then
eval "$(/opt/homebrew/bin/brew shellenv)" eval "$(/opt/homebrew/bin/brew shellenv)"
wine-gptk(){ arch -x86_64 /bin/zsh -c "WINEESYNC=1 \$(brew --prefix game-porting-toolkit)/bin/wine64 $@"; } wine-gptk(){ arch -x86_64 /bin/zsh -c "WINEESYNC=1 \$(brew --prefix game-porting-toolkit)/bin/wine64 $@"; }
else else
eval "$(/usr/local/bin/brew shellenv)" eval "$(/usr/local/bin/brew shellenv)"
wine-gptk(){ WINEESYNC=1 $(brew --prefix game-porting-toolkit)/bin/wine64 "$@"; } wine-gptk(){ WINEESYNC=1 $(brew --prefix game-porting-toolkit)/bin/wine64 "$@"; }
fi fi
'';
gptk-steam(){ wine-gptk "${config.home.homeDirectory}/.gptk_wineprefix/drive_c/Program\ Files\ \(x86\)/Steam/steam.exe"; }
'';
home.packages = with pkgs; home.packages = with pkgs;
[ [

View file

@ -259,36 +259,6 @@ in {
"Working Directory" = "/Users/willem"; "Working Directory" = "/Users/willem";
} }
// profile_defaults) // profile_defaults)
({
"Columns" = 120;
"Command" = "";
"Custom Command" = "No";
"Custom Directory" = "No";
"Default Bookmark" = "No";
"Description" = "Default";
"Disable Window Resizing" = true;
"Guid" = "00A17AC2-1885-4AE2-B941-A47A5D8C36B4";
"Has Hotkey" = true;
"HotKey Activated By Modifier" = false;
"HotKey Alternate Shortcuts" = {};
"HotKey Characters Ignoring Modifiers" = " ";
"HotKey Characters" = " ";
"HotKey Key Code" = 49;
"HotKey Modifier Activation" = 3;
"HotKey Modifier Flags" = 1048576;
"HotKey Window Animates" = false;
"HotKey Window AutoHides" = true;
"HotKey Window Dock Click Action" = 0;
"HotKey Window Floats" = true;
"HotKey Window Reopens On Activation" = false;
"Name" = "Hotkey Window";
"Rows" = 25;
"Screen" = -1;
"Space" = -1;
"Tags" = [];
"Working Directory" = "/Users/willem";
}
// profile_defaults)
]; ];
}; };
} }

View file

@ -68,6 +68,7 @@
latest.toolchain latest.toolchain
targets.thumbv7em-none-eabihf.latest.rust-std targets.thumbv7em-none-eabihf.latest.rust-std
]); ]);
lua_p = pkgs.lua5_4.withPackages (p: with p; [luacheck]);
in { in {
home.packages = with pkgs; home.packages = with pkgs;
[ [
@ -94,6 +95,8 @@ in {
htop htop
iaito iaito
jq jq
lua_p
lua-language-server
mu mu
nix-zsh-completions nix-zsh-completions
nixfmt nixfmt
@ -117,6 +120,7 @@ in {
spotify-tui spotify-tui
spotifyd spotifyd
sqlite sqlite
stylua
texinfo texinfo
texliveset texliveset
tldr tldr

View file

@ -14,7 +14,7 @@
nix-direnv = {enable = true;}; nix-direnv = {enable = true;};
}; };
exa = { eza = {
enable = true; enable = true;
enableAliases = true; enableAliases = true;
}; };

View file

@ -19,12 +19,6 @@
sha256 = "sha256-6aX2S4cUop1rdxweIF5f1qrgNmYd1mtWgT9T1Q1s2h8="; sha256 = "sha256-6aX2S4cUop1rdxweIF5f1qrgNmYd1mtWgT9T1Q1s2h8=";
}; };
}; };
mu4e = epkgs.trivialBuild {
pname = "mu4e";
version = pkgs.mu.version;
src = "${pkgs.mu}/share/emacs/site-lisp/mu4e";
};
mu4e-accounts = epkgs.trivialBuild { mu4e-accounts = epkgs.trivialBuild {
pname = "mu4e-accounts"; pname = "mu4e-accounts";
version = "0.1"; version = "0.1";
@ -117,6 +111,7 @@
ivy-bibtex ivy-bibtex
lean4-mode lean4-mode
lsp-mode lsp-mode
lua-mode
magit magit
magit-section magit-section
meow meow

View file

@ -47,7 +47,7 @@
direnv allow direnv allow
fi fi
if [[ ! -e shell.nix ]] && [[ ! -e default.nix ]]; then if [[ ! -e shell.nix ]] && [[ ! -e default.nix ]]; then
cat > default.nix <<'EOF' cat > default.nix <<EOF
with import <nixpkgs> {}; with import <nixpkgs> {};
mkShell { mkShell {
nativeBuildInputs = [ nativeBuildInputs = [
@ -56,7 +56,7 @@
]; ];
} }
EOF EOF
${config.home.sessionVariables.EDITOR} default.nix '${config.home.sessionVariables.EDITOR}' default.nix
fi fi
} }
@ -67,7 +67,7 @@
echo "use flake" > .envrc echo "use flake" > .envrc
direnv allow direnv allow
fi fi
${config.home.sessionVariables.EDITOR} flake.nix '${config.home.sessionVariables.EDITOR}' flake.nix
} }
''; '';