Skip to content

Commit 03871f6

Browse files
committed
feat: fixing up darwin
1 parent 723aef6 commit 03871f6

13 files changed

Lines changed: 511 additions & 103 deletions

File tree

flake.lock

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
};
2323

2424
nix-darwin = {
25-
url = "github:LnL7/nix-darwin";
25+
url = "github:nix-darwin/nix-darwin/master";
2626
inputs.nixpkgs.follows = "nixpkgs";
2727
};
2828

hosts/darwin/astroid/default.nix

Lines changed: 63 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,9 @@ in
4141
};
4242
};
4343

44-
environment.systemPackages = with pkgs; [
45-
# firefox
44+
imports = [
45+
"${self}/modules/home/common/sharedsetup.nix"
4646
];
47-
4847
home-manager = {
4948

5049
extraSpecialArgs = { inherit inputs; };
@@ -54,33 +53,23 @@ in
5453
home.username = "sheep";
5554
programs.home-manager.enable = true;
5655

57-
imports = [
58-
"${self}/modules/home"
59-
"${self}/profiles/home/nixvim"
60-
61-
];
62-
6356
solarsystem = lib.recursiveUpdate {
6457
profiles = {
58+
darwin = true;
6559
nixvim = true;
6660
};
67-
modules.packages = true;
68-
modules.ghostty = true;
69-
modules.eza = true;
70-
modules.direnv = true;
71-
modules.zsh = true;
72-
modules.programs = true;
73-
modules.firefox = true;
7461
} sharedOptions;
62+
63+
imports = [
64+
"${self}/modules/home"
65+
"${self}/profiles/home/nixvim"
66+
"${self}/profiles/home/darwin"
67+
];
7568
};
7669
};
7770

7871
system.stateVersion = 4;
7972

80-
imports = [
81-
"${self}/modules/home/common/sharedsetup.nix"
82-
];
83-
8473
ids.gids.nixbld = 350;
8574
solarsystem = lib.recursiveUpdate {
8675
homeDir = "/Users/${mainUser}";
@@ -89,15 +78,20 @@ in
8978

9079
homebrew = {
9180
enable = true;
92-
brews = [
93-
"tailscale"
94-
];
81+
# brews = [
82+
# "yabai"
83+
# ];
84+
9585
casks = [
9686
"ghostty"
9787
"vesktop"
9888
"firefox"
9989
];
10090

91+
# taps = [
92+
# "koekeishiya/formulae"
93+
# ];
94+
10195
};
10296

10397
# Add ability to use TouchID for sudo
@@ -115,57 +109,57 @@ in
115109
BatteryShowPercentage = true;
116110
NowPlaying = false;
117111
};
118-
NSGlobalDomain = {
119-
"com.apple.sound.beep.volume" = 0.000;
120-
NSWindowShouldDragOnGesture = true;
121-
AppleKeyboardUIMode = 3;
122-
"com.apple.keyboard.fnState" = true;
123-
AppleInterfaceStyle = "Dark";
124-
ApplePressAndHoldEnabled = false;
125-
AppleShowAllExtensions = true;
126-
InitialKeyRepeat = 20;
127-
KeyRepeat = 2;
128-
NSAutomaticCapitalizationEnabled = false;
129-
NSAutomaticDashSubstitutionEnabled = false;
130-
NSAutomaticQuoteSubstitutionEnabled = false;
131-
NSAutomaticSpellingCorrectionEnabled = false;
132-
NSAutomaticWindowAnimationsEnabled = false;
133-
NSDocumentSaveNewDocumentsToCloud = false;
134-
NSNavPanelExpandedStateForSaveMode = true;
135-
PMPrintingExpandedStateForPrint = true;
136-
};
137-
LaunchServices = {
138-
LSQuarantine = false;
139-
};
112+
# NSGlobalDomain = {
113+
# "com.apple.sound.beep.volume" = 0.000;
114+
# NSWindowShouldDragOnGesture = true;
115+
# AppleKeyboardUIMode = 3;
116+
# "com.apple.keyboard.fnState" = true;
117+
# AppleInterfaceStyle = "Dark";
118+
# ApplePressAndHoldEnabled = false;
119+
# AppleShowAllExtensions = true;
120+
# InitialKeyRepeat = 20;
121+
# KeyRepeat = 2;
122+
# NSAutomaticCapitalizationEnabled = false;
123+
# NSAutomaticDashSubstitutionEnabled = false;
124+
# NSAutomaticQuoteSubstitutionEnabled = false;
125+
# NSAutomaticSpellingCorrectionEnabled = false;
126+
# NSAutomaticWindowAnimationsEnabled = false;
127+
# NSDocumentSaveNewDocumentsToCloud = false;
128+
# NSNavPanelExpandedStateForSaveMode = true;
129+
# PMPrintingExpandedStateForPrint = true;
130+
# };
131+
# LaunchServices = {
132+
# LSQuarantine = false;
133+
# };
140134
trackpad = {
141135
TrackpadRightClick = true;
142136
TrackpadThreeFingerDrag = true;
143137
Clicking = true;
144138
};
145-
finder = {
146-
AppleShowAllFiles = true;
147-
CreateDesktop = false;
148-
FXDefaultSearchScope = "SCcf";
149-
FXEnableExtensionChangeWarning = false;
150-
FXPreferredViewStyle = "Nlsv";
151-
QuitMenuItem = true;
152-
ShowPathbar = true;
153-
ShowStatusBar = true;
154-
_FXShowPosixPathInTitle = true;
155-
_FXSortFoldersFirst = true;
156-
};
157-
dock = {
158-
autohide = true;
159-
expose-animation-duration = 0.15;
160-
show-recents = false;
161-
showhidden = true;
162-
persistent-apps = [ ];
163-
tilesize = 30;
164-
wvous-bl-corner = 1;
165-
wvous-br-corner = 1;
166-
wvous-tl-corner = 1;
167-
wvous-tr-corner = 1;
168-
};
139+
# finder = {
140+
# AppleShowAllFiles = true;
141+
# CreateDesktop = false;
142+
# FXDefaultSearchScope = "SCcf";
143+
# FXEnableExtensionChangeWarning = false;
144+
# FXPreferredViewStyle = "Nlsv";
145+
# QuitMenuItem = true;
146+
# ShowPathbar = true;
147+
# ShowStatusBar = true;
148+
# _FXShowPosixPathInTitle = true;
149+
# _FXSortFoldersFirst = true;
150+
# };
151+
# dock = {
152+
# autohide = true;
153+
# expose-animation-duration = 0.15;
154+
# show-recents = false;
155+
# showhidden = true;
156+
# persistent-apps = [ ];
157+
# tilesize = 30;
158+
# wvous-bl-corner = 1;
159+
# wvous-br-corner = 1;
160+
# wvous-tl-corner = 1;
161+
# wvous-tr-corner = 1;
162+
# };
169163
};
170164
};
171165

modules/darwin/default.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{ lib, ... }:
2+
let
3+
importNames = lib.solarsystem.readNix "modules/darwin";
4+
in
5+
{
6+
imports = lib.solarsystem.mkImports importNames "modules/darwin";
7+
}

0 commit comments

Comments
 (0)