2022-09-18 15:49:37 +00:00
|
|
|
{ config, pkgs, lib, ... }: {
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
package = pkgs.nix;
|
|
|
|
extraOptions = ''
|
|
|
|
system = aarch64-darwin # M1 gang
|
|
|
|
extra-platforms = aarch64-darwin x86_64-darwin # But we use rosetta too
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
build-users-group = nixbld
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
fonts = {
|
2022-09-19 07:23:26 +00:00
|
|
|
fontDir.enable = false;
|
2022-09-18 15:49:37 +00:00
|
|
|
fonts = with pkgs; [
|
|
|
|
fira
|
|
|
|
fira-code
|
|
|
|
roboto
|
|
|
|
roboto-mono
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.fish.enable = true;
|
|
|
|
system.activationScripts.postActivation.text = ''
|
|
|
|
# Set the default shell as fish for the user. MacOS doesn't do this like nixOS does
|
|
|
|
sudo chsh -s ${lib.getBin pkgs.fish}/bin/fish larstvei
|
|
|
|
'';
|
|
|
|
|
|
|
|
networking.hostName = "macbookpro";
|
|
|
|
system.stateVersion = 4;
|
|
|
|
|
|
|
|
system.keyboard = {
|
|
|
|
enableKeyMapping = true;
|
|
|
|
remapCapsLockToControl = true;
|
|
|
|
};
|
|
|
|
system.defaults = {
|
|
|
|
screencapture = { location = "/tmp"; };
|
|
|
|
dock = {
|
|
|
|
autohide = true;
|
|
|
|
showhidden = true;
|
|
|
|
mru-spaces = false;
|
|
|
|
};
|
|
|
|
finder = {
|
|
|
|
AppleShowAllExtensions = true;
|
|
|
|
QuitMenuItem = true;
|
|
|
|
FXEnableExtensionChangeWarning = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
NSGlobalDomain = {
|
|
|
|
AppleKeyboardUIMode = 3;
|
|
|
|
ApplePressAndHoldEnabled = false;
|
|
|
|
AppleFontSmoothing = 1;
|
|
|
|
_HIHideMenuBar = true;
|
|
|
|
InitialKeyRepeat = 15;
|
|
|
|
KeyRepeat = 1;
|
|
|
|
"com.apple.mouse.tapBehavior" = 1;
|
|
|
|
"com.apple.swipescrolldirection" = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
homebrew = {
|
|
|
|
enable = true;
|
|
|
|
onActivation.upgrade = true;
|
|
|
|
casks = [
|
|
|
|
"amethyst"
|
2022-09-19 14:51:34 +00:00
|
|
|
"google-chrome"
|
2022-09-18 15:49:37 +00:00
|
|
|
"raycast"
|
|
|
|
"iina"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|