Removes unused packages and darwin shell init

This commit is contained in:
willemml 2023-11-17 22:23:04 -08:00
parent fa2f62bf90
commit d07c5f8c52
Signed by: willemml
GPG key ID: C3DE5DF6198DACBD
3 changed files with 2 additions and 43 deletions

View file

@ -34,36 +34,14 @@
sh
*/
''
export WINEPREFIX="${config.home.homeDirectory}/.gptk_wineprefix"
if [ "$(arch)" = "arm64" ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
wine-gptk(){ arch -x86_64 /bin/zsh -c "WINEESYNC=1 \$(brew --prefix game-porting-toolkit)/bin/wine64 $@"; }
else
eval "$(/usr/local/bin/brew shellenv)"
wine-gptk(){ WINEESYNC=1 $(brew --prefix game-porting-toolkit)/bin/wine64 "$@"; }
fi
gptk-steam(){ wine-gptk "${config.home.homeDirectory}/.gptk_wineprefix/drive_c/Program\ Files\ \(x86\)/Steam/steam.exe"; }
'';
programs.emacs.extraPackages = epkgs:
with epkgs; [
swift-mode
company-sourcekit
];
home.packages = with pkgs;
[
colima
pngpaste
spoof-mac
]
++ (let
pkgs_x86_only = pkgs // {system = "x86_64-darwin";};
in (with pkgs_x86_only; [
gcc-arm-embedded
]));
home.packages = [pkgs.colima];
targets.darwin = {
defaults = {

View file

@ -5,7 +5,7 @@
pkgs,
...
}: let
emacsCommand = "emacsclient -c -nw";
emacsCommand = "${config.programs.emacs.finalPackage}/bin/emacsclient -nw";
in rec {
imports = [
./modules/emacs.nix

View file

@ -41,25 +41,6 @@
}
fi
nixifypy() {
if [ ! -e ./.envrc ]; then
echo "use nix" > .envrc
direnv allow
fi
if [[ ! -e shell.nix ]] && [[ ! -e default.nix ]]; then
cat > default.nix <<EOF
with import <nixpkgs> {};
mkShell {
nativeBuildInputs = [
bashInteractive
(pkgs.python310.withPackages (p: with p; [ ]))
];
}
EOF
'${config.home.sessionVariables.EDITOR}' default.nix
fi
}
flakify() {
if [ ! -e flake.nix ]; then
nix flake new -t github:nix-community/nix-direnv .