feat: darwin configuration, LnL7/nix-darwin#310 patch

This commit is contained in:
Kat Inskip 2022-07-11 10:43:50 -07:00
parent 6e1080ad2c
commit 2e98ec90e0
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
20 changed files with 183 additions and 82 deletions

5
darwin/base/fonts.nix Normal file
View file

@ -0,0 +1,5 @@
{ config, ... }: {
fonts = {
fontDir.enable = true;
};
}

6
darwin/base/gpg.nix Normal file
View file

@ -0,0 +1,6 @@
{ config, ... }: {
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
}

View file

@ -1,5 +1,9 @@
{ config, ... }: {
homebrew = {
enable = true;
cleanup = "zap";
brews = [
"mas"
];
};
}

View file

@ -12,6 +12,8 @@
experimental-features = nix-command flakes
keep-derivations = true
keep-outputs = true
extra-platforms = x86_64-darwin aarch64-darwin
builders-use-substitutes = true
'';
};
}

43
darwin/base/system.nix Normal file
View file

@ -0,0 +1,43 @@
{ config, ... }: {
services.activate-system.enable = true;
system = {
defaults = {
SoftwareUpdate.AutomaticallyInstallMacOSUpdates = true;
NSGlobalDomain = {
AppleInterfaceStyleSwitchesAutomatically = true;
AppleShowAllFiles = true;
AppleShowAllExtensions = true;
};
dock = {
autohide = true;
orientation = "left";
tilesize = 32;
wvous-tl-corner = 1;
wvous-tr-corner = 10;
wvous-bl-corner = 4;
wvous-br-corner = 14;
};
finder = {
CreateDesktop = false;
ShowPathbar = true;
ShowStatusBar = true;
AppleShowAllFiles = true;
AppleShowAllExtensions = true;
};
loginwindow = {
GuestEnabled = false;
};
};
keyboard = {
enableKeyMapping = true;
remapCapsLockToControl = true;
userKeyMapping = [
{
HIDKeyboardModifierMappingSrc = 30064771129;
HIDKeyboardModifierMappingDst = 30064771299;
}
];
};
};
}

View file

@ -15,10 +15,19 @@
"firefox"
"telegram"
"discord"
"utm"
"mullvadvpn"
"bitwarden"
];
masApps = {
Tailscale = 1475387142;
};
};
environment.systemPackages = with pkgs; [
terraform
yt-dlp
k2tf
awscli
jq
];