🐃 switch to emacsMacport

This commit is contained in:
James Walker 2021-05-02 16:29:01 -04:00
parent 79c5d5df2a
commit c11fdb186d
Signed by: walkah
GPG Key ID: 3C127179D6086E93
2 changed files with 11 additions and 2 deletions

View File

@ -5,7 +5,7 @@
# List packages installed in system profile. To search by name, run: # List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget # $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [ ]; environment.systemPackages = with pkgs; [ emacsMacport ];
# Use a custom configuration.nix location. # Use a custom configuration.nix location.
# $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix # $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix
@ -51,6 +51,15 @@
}; };
}; };
system.activationScripts.applications.text = pkgs.lib.mkForce (''
rm -rf /Applications/Nix
mkdir -p /Applications/Nix
for app in $(find ${config.system.build.applications}/Applications -maxdepth 1 -type l); do
src="$(/usr/bin/stat -f%Y "$app")"
cp -r "$src" /Applications/Nix
done
'');
# Used for backwards compatibility, please read the changelog before changing. # Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog # $ darwin-rebuild changelog
system.stateVersion = 4; system.stateVersion = 4;

View File

@ -144,7 +144,7 @@
emacs = { emacs = {
enable = true; enable = true;
package = pkgs.emacs-nox; package = pkgs.emacsMacport;
extraPackages = epkgs: [ epkgs.vterm ]; extraPackages = epkgs: [ epkgs.vterm ];
}; };