mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-13 03:37:18 +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
|
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 $@"; }
|
|
||||||
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 "$@"; }
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
gptk-steam(){ wine-gptk "${config.home.homeDirectory}/.gptk_wineprefix/drive_c/Program\ Files\ \(x86\)/Steam/steam.exe"; }
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
programs.emacs.extraPackages = epkgs:
|
home.packages = [pkgs.colima];
|
||||||
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
|
|
||||||
]));
|
|
||||||
|
|
||||||
targets.darwin = {
|
targets.darwin = {
|
||||||
defaults = {
|
defaults = {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
emacsCommand = "emacsclient -c -nw";
|
emacsCommand = "${config.programs.emacs.finalPackage}/bin/emacsclient -nw";
|
||||||
in rec {
|
in rec {
|
||||||
imports = [
|
imports = [
|
||||||
./modules/emacs.nix
|
./modules/emacs.nix
|
||||||
|
|
|
@ -41,25 +41,6 @@
|
||||||
}
|
}
|
||||||
fi
|
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() {
|
flakify() {
|
||||||
if [ ! -e flake.nix ]; then
|
if [ ! -e flake.nix ]; then
|
||||||
nix flake new -t github:nix-community/nix-direnv .
|
nix flake new -t github:nix-community/nix-direnv .
|
||||||
|
|
Loading…
Add table
Reference in a new issue