beef up nix-darwin configuration
This commit is contained in:
parent
76bc441cb6
commit
d1c28d6b76
1 changed files with 21 additions and 3 deletions
|
|
@ -5,8 +5,8 @@
|
||||||
# $ nix-env -qaP | grep wget
|
# $ nix-env -qaP | grep wget
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
[
|
[
|
||||||
pkgs.firefox
|
pkgs.vim
|
||||||
skhd
|
pkgs.iterm2
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use a custom configuration.nix location.
|
# Use a custom configuration.nix location.
|
||||||
|
|
@ -21,6 +21,24 @@
|
||||||
programs.zsh.enable = true; # default shell on catalina
|
programs.zsh.enable = true; # default shell on catalina
|
||||||
# programs.fish.enable = true;
|
# programs.fish.enable = true;
|
||||||
|
|
||||||
|
# We need this snippet to allow spotlight to find the applications installed
|
||||||
|
# by nix-darwin
|
||||||
|
system.activationScripts.applications.text = pkgs.lib.mkForce (
|
||||||
|
''
|
||||||
|
rm -rf ~/Applications/Nix\ Apps
|
||||||
|
mkdir -p ~/Applications/Nix\ Apps
|
||||||
|
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\ Apps
|
||||||
|
done
|
||||||
|
''
|
||||||
|
);
|
||||||
|
|
||||||
|
system.keyboard = {
|
||||||
|
enableKeyMapping = true;
|
||||||
|
remapCapsLockToEscape = true;
|
||||||
|
};
|
||||||
|
|
||||||
# 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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue