mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
feat: darwin configuration, LnL7/nix-darwin#310 patch
This commit is contained in:
parent
6e1080ad2c
commit
2e98ec90e0
20 changed files with 183 additions and 82 deletions
5
darwin/base/fonts.nix
Normal file
5
darwin/base/fonts.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{ config, ... }: {
|
||||
fonts = {
|
||||
fontDir.enable = true;
|
||||
};
|
||||
}
|
||||
6
darwin/base/gpg.nix
Normal file
6
darwin/base/gpg.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ config, ... }: {
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,5 +1,9 @@
|
|||
{ config, ... }: {
|
||||
homebrew = {
|
||||
enable = true;
|
||||
cleanup = "zap";
|
||||
brews = [
|
||||
"mas"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
43
darwin/base/system.nix
Normal 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;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -15,10 +15,19 @@
|
|||
"firefox"
|
||||
"telegram"
|
||||
"discord"
|
||||
"utm"
|
||||
"mullvadvpn"
|
||||
"bitwarden"
|
||||
];
|
||||
masApps = {
|
||||
Tailscale = 1475387142;
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
terraform
|
||||
yt-dlp
|
||||
k2tf
|
||||
awscli
|
||||
jq
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue