2024-07-03 14:03:08 +00:00
|
|
|
{ pkgs, lib, ... }: {
|
2022-09-18 15:49:37 +00:00
|
|
|
|
|
|
|
nix = {
|
|
|
|
package = pkgs.nix;
|
2024-09-28 14:45:19 +00:00
|
|
|
|
|
|
|
settings = {
|
|
|
|
system = "aarch64-darwin";
|
|
|
|
extra-platforms = [ "aarch64-darwin" "x86_64-darwin" ];
|
|
|
|
experimental-features = [ "nix-command" "flakes" ];
|
2024-09-28 15:09:24 +00:00
|
|
|
build-users-group = "nixbld";
|
2024-09-28 17:19:39 +00:00
|
|
|
trusted-users = [ "root" "larstvei" ];
|
2024-09-28 14:45:19 +00:00
|
|
|
};
|
2022-09-18 15:49:37 +00:00
|
|
|
};
|
|
|
|
|
2024-07-06 15:26:18 +00:00
|
|
|
fonts.packages = with pkgs; [
|
|
|
|
fira
|
|
|
|
fira-code
|
|
|
|
iosevka
|
|
|
|
roboto
|
|
|
|
roboto-mono
|
|
|
|
source-sans
|
|
|
|
source-code-pro
|
|
|
|
source-serif
|
|
|
|
];
|
2022-09-18 15:49:37 +00:00
|
|
|
|
2022-09-20 19:14:28 +00:00
|
|
|
users.users."larstvei".home = "/Users/larstvei";
|
|
|
|
|
2022-09-18 15:49:37 +00:00
|
|
|
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";
|
|
|
|
|
2022-09-19 14:54:39 +00:00
|
|
|
system = {
|
|
|
|
stateVersion = 4;
|
|
|
|
|
|
|
|
keyboard = {
|
|
|
|
enableKeyMapping = true;
|
|
|
|
remapCapsLockToControl = true;
|
2022-09-18 15:49:37 +00:00
|
|
|
};
|
2022-09-19 14:54:39 +00:00
|
|
|
defaults = {
|
|
|
|
screencapture = { location = "/tmp"; };
|
|
|
|
dock = {
|
|
|
|
autohide = true;
|
|
|
|
showhidden = true;
|
|
|
|
mru-spaces = false;
|
|
|
|
};
|
|
|
|
finder = {
|
|
|
|
AppleShowAllExtensions = true;
|
|
|
|
QuitMenuItem = true;
|
|
|
|
FXEnableExtensionChangeWarning = true;
|
|
|
|
};
|
2022-09-18 15:49:37 +00:00
|
|
|
|
2022-09-19 14:54:39 +00:00
|
|
|
NSGlobalDomain = {
|
|
|
|
AppleKeyboardUIMode = 3;
|
|
|
|
ApplePressAndHoldEnabled = false;
|
|
|
|
AppleFontSmoothing = 1;
|
|
|
|
_HIHideMenuBar = true;
|
|
|
|
InitialKeyRepeat = 15;
|
|
|
|
KeyRepeat = 1;
|
|
|
|
"com.apple.mouse.tapBehavior" = 1;
|
|
|
|
"com.apple.swipescrolldirection" = true;
|
|
|
|
};
|
2022-09-18 15:49:37 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
homebrew = {
|
|
|
|
enable = true;
|
2023-02-19 19:09:59 +00:00
|
|
|
onActivation = {
|
2024-07-03 14:03:08 +00:00
|
|
|
# autoUpdate = true;
|
2023-02-19 19:09:59 +00:00
|
|
|
upgrade = true;
|
|
|
|
cleanup = "uninstall";
|
|
|
|
};
|
2024-07-03 14:03:08 +00:00
|
|
|
taps = [ "homebrew/cask" "homebrew/cask-versions" ];
|
2022-09-18 15:49:37 +00:00
|
|
|
casks = [
|
|
|
|
"amethyst"
|
2024-07-03 14:03:08 +00:00
|
|
|
"arc"
|
|
|
|
"chatgpt"
|
2023-07-03 15:33:21 +00:00
|
|
|
"docker"
|
2022-12-21 17:49:44 +00:00
|
|
|
"dropbox"
|
2024-03-22 19:30:16 +00:00
|
|
|
# "expressvpn"
|
2024-07-03 14:03:08 +00:00
|
|
|
# "firefox-developer-edition"
|
2022-09-19 14:51:34 +00:00
|
|
|
"google-chrome"
|
2022-12-23 17:04:41 +00:00
|
|
|
"iina"
|
2023-02-10 16:52:00 +00:00
|
|
|
"karabiner-elements"
|
2024-07-03 14:03:08 +00:00
|
|
|
# "mactex"
|
2024-03-22 19:30:16 +00:00
|
|
|
"obs"
|
2024-07-03 14:03:08 +00:00
|
|
|
"ollama"
|
2024-08-31 10:09:08 +00:00
|
|
|
"processing"
|
2022-09-18 15:49:37 +00:00
|
|
|
"raycast"
|
2022-10-01 06:58:37 +00:00
|
|
|
"remarkable"
|
2023-02-18 19:44:39 +00:00
|
|
|
"signal"
|
2024-08-31 10:09:08 +00:00
|
|
|
"skim"
|
2024-03-22 19:30:16 +00:00
|
|
|
"supercollider"
|
2024-09-28 14:45:40 +00:00
|
|
|
"utm"
|
2023-04-30 12:16:08 +00:00
|
|
|
"zoom"
|
2022-09-18 15:49:37 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|