mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 11:17:17 +00:00
Removes unused packages and darwin shell init
This commit is contained in:
parent
fa2f62bf90
commit
d07c5f8c52
3 changed files with 2 additions and 43 deletions
|
@ -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 = {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
pkgs,
|
||||
...
|
||||
}: let
|
||||
emacsCommand = "emacsclient -c -nw";
|
||||
emacsCommand = "${config.programs.emacs.finalPackage}/bin/emacsclient -nw";
|
||||
in rec {
|
||||
imports = [
|
||||
./modules/emacs.nix
|
||||
|
|
|
@ -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 .
|
||||
|
|
Loading…
Add table
Reference in a new issue