Compare commits

...
3 Commits
Author SHA1 Message Date
blake ae5c5959bb add directions for darwin bootstrap 2026-04-23 16:23:28 -05:00
blake 8563489682 move system settings to darwin default 2026-04-23 15:56:45 -05:00
blake 1ec90889e4 breakdown work and genral apps to be modular 2026-04-23 15:53:00 -05:00
5 changed files with 166 additions and 87 deletions
+5 -86
View File
@@ -18,85 +18,14 @@
syncthing.enable = true; syncthing.enable = true;
tailscale.enable = true; tailscale.enable = true;
yubikey.enable = true; yubikey.enable = true;
work.enable = true;
apps.enable = true;
}; };
# since darwin needs root now # since darwin needs root now (will be removed in future)
system = { system.primaryUser = "bhelderman"
primaryUser = "bhelderman";
defaults = {
trackpad = {
Clicking = true;
TrackpadThreeFingerDrag = true;
TrackpadFourFingerVertSwipeGesture = 2;
TrackpadRightClick = true;
TrackpadFourFingerHorizSwipeGesture = 2;
TrackpadPinch = true;
TrackpadRotate = true;
TrackpadTwoFingerDoubleTapGesture = true;
TrackpadTwoFingerFromRightEdgeSwipeGesture = 3;
};
universalaccess = {
mouseDriverCursorSize = 3.0;
};
NSGlobalDomain = {
AppleICUForce24HourTime = true;
AppleInterfaceStyle = "Dark";
NSAutomaticCapitalizationEnabled = false;
NSDocumentSaveNewDocumentsToCloud = false;
};
WindowManager = {
EnableStandardClickToShowDesktop = false;
GloballyEnabled = false; # disable stage manager
};
controlcenter = {
BatteryShowPercentage = true;
Bluetooth = true;
Display = false;
FocusModes = false;
NowPlaying = false;
Sound = false;
};
menuExtraClock = {
ShowDate = 1;
ShowDayOfWeek = true;
Show24Hour = true;
ShowSeconds = true;
};
dock = {
autohide = true;
largesize = 16;
mineffect = "genie";
minimize-to-application = true;
orientation = "bottom";
scroll-to-open = true;
show-recents = false;
};
finder = {
AppleShowAllExtensions = true;
NewWindowTarget = "Home";
ShowPathbar = true;
ShowStatusBar = true;
};
hitoolbox.AppleFnUsageType = "Change Input Source";
iCal = {
"first day of week" = "Monday";
};
loginwindow = {
LoginwindowText = "howdy o/";
GuestEnabled = false;
};
screencapture.type = "png";
screensaver = {
askForPassword = true;
askForPasswordDelay = 15;
};
};
};
power = { power = {
sleep = { sleep = {
computer = 30; computer = 30;
@@ -148,24 +77,14 @@
"media-info" "media-info"
]; ];
casks = [ casks = [
"gnucash" "kitty"
"battery-toolkit" "battery-toolkit"
"linearmouse" "linearmouse"
"utm"
"libreoffice"
]; ];
masApps = { masApps = {
# "name" = app_id_number; # "name" = app_id_number;
"configurator" = 1168254295;
"bitwarden" = 1352778147;
"darkreader" = 1438243180;
"ghostery" = 6504861501;
"privacy" = 6449850851;
"hiddenbar" = 1452453066; "hiddenbar" = 1452453066;
"testflight" = 899247664; "testflight" = 899247664;
"pages" = 409201541;
"numbers" = 409203825;
"keynote" = 409183694;
}; };
}; };
+80
View File
@@ -8,11 +8,91 @@
/* /*
instructions for first time setup for macos here instructions for first time setup for macos here
1. install the nix package manager with: `sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install)`
2. xfer or git clone flake to ~/.nix
3. install nix-darwin with: `nix run nix-darwin -- switch --flake ~/.nix#host`
4. nh should be installed now so enjoy and use `nh darwin switch`
*/ */
imports = [ imports = [
]; ];
# general macos system settings
system = {
defaults = {
trackpad = {
Clicking = true;
TrackpadThreeFingerDrag = true;
TrackpadFourFingerVertSwipeGesture = 2;
TrackpadRightClick = true;
TrackpadFourFingerHorizSwipeGesture = 2;
TrackpadPinch = true;
TrackpadRotate = true;
TrackpadTwoFingerDoubleTapGesture = true;
TrackpadTwoFingerFromRightEdgeSwipeGesture = 3;
};
universalaccess = {
mouseDriverCursorSize = 3.0;
};
NSGlobalDomain = {
AppleICUForce24HourTime = true;
AppleInterfaceStyle = "Dark";
NSAutomaticCapitalizationEnabled = false;
NSDocumentSaveNewDocumentsToCloud = false;
};
WindowManager = {
EnableStandardClickToShowDesktop = false;
GloballyEnabled = false; # disable stage manager
};
controlcenter = {
BatteryShowPercentage = true;
Bluetooth = true;
Display = false;
FocusModes = false;
NowPlaying = false;
Sound = false;
};
menuExtraClock = {
ShowDate = 1;
ShowDayOfWeek = true;
Show24Hour = true;
ShowSeconds = true;
};
dock = {
autohide = true;
largesize = 16;
mineffect = "genie";
minimize-to-application = true;
orientation = "bottom";
scroll-to-open = true;
show-recents = false;
};
finder = {
AppleShowAllExtensions = true;
NewWindowTarget = "Home";
ShowPathbar = true;
ShowStatusBar = true;
};
hitoolbox.AppleFnUsageType = "Change Input Source";
iCal = {
"first day of week" = "Monday";
};
loginwindow = {
LoginwindowText = "howdy o/";
GuestEnabled = false;
};
screencapture.type = "png";
screensaver = {
askForPassword = true;
askForPasswordDelay = 15;
};
};
};
# base system package install list # base system package install list
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
wget wget
+45
View File
@@ -0,0 +1,45 @@
{
pkgs,
config,
lib,
...
}:
let
service = "apps";
cfg = config.darwin.${service};
in {
options.darwin.${service} = {
enable = lib.mkEnableOption "installs generally wanted apps";
};
config = lib.mkIf cfg.enable {
# environment.systemPackages = with pkgs; [
# uhhh
# ];
homebrew = {
brews = [
];
casks = [
"gnucash"
"utm"
"libreoffice"
"iperf3"
"nmap"
"p7zip"
"sl"
"cowsay"
];
masApps = {
"pages" = 409201541;
"numbers" = 409203825;
"keynote" = 409183694;
"bitwarden" = 1352778147;
"darkreader" = 1438243180;
"ghostery" = 6504861501;
"privacy" = 6449850851;
};
};
};
}
+1
View File
@@ -9,6 +9,7 @@
./tailscale ./tailscale
./syncthing ./syncthing
./yubikey ./yubikey
./work
# ./sops # ./sops
]; ];
+34
View File
@@ -0,0 +1,34 @@
{
pkgs,
config,
lib,
inputs,
...
}: let
cfg = config.darwin.work;
in {
options.darwin.work = {
enable = lib.mkEnableOption "installs apps for work";
};
config = lib.mkIf cfg.enable {
services.tailscale = {
enable = true;
#overrideLocalDns = true;
#authKeyFile = authkey_file;
};
homebrew = {
casks = [
"asana"
#"microsoft-teams"
"microsoft-office"
];
masApps = {
"configurator" = 1168254295;
};
};
};
}