Skip to content

Commit

Permalink
chore: separate files
Browse files Browse the repository at this point in the history
  • Loading branch information
Allianaab2m committed Dec 4, 2024
1 parent dc4444c commit a97f6b9
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 62 deletions.
24 changes: 24 additions & 0 deletions nix-darwin/brew.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{...}: {
homebrew = {
enable = true;
onActivation = {
autoUpdate = true;
};
casks = [
"1password"
"raycast"
"karabiner-elements"
"arc"
"notion"
"discord"
"microsoft-word"
"microsoft-powerpoint"
"microsoft-excel"
"google-drive"
"orbstack"
"visual-studio-code@insiders"
"tailscale"
];
};

}
67 changes: 5 additions & 62 deletions nix-darwin/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{ pkgs, ... }: {
imports = [
./system.nix
./brew.nix
];

nix = {
optimise.automatic = true;
settings = {
Expand All @@ -11,68 +16,6 @@

services.nix-daemon.enable = true;

system = {
stateVersion = 5;
defaults = {
NSGlobalDomain = {
AppleShowAllExtensions = true;
# 長押しして出てくるアクセントメニューを消す
ApplePressAndHoldEnabled = false;
# キーリピート
InitialKeyRepeat = 11;
KeyRepeat = 2;
"com.apple.mouse.tapBehavior" = 1;
};
finder = {
AppleShowAllFiles = true;
AppleShowAllExtensions = true;
ShowPathbar = true;
ShowStatusBar = true;
};
dock = {
autohide = true;
show-recents = false;
orientation = "left";
mineffect = "scale";
minimize-to-application = true;
wvous-br-corner = 1;
};
screencapture = {
disable-shadow = true;
};
controlcenter = {
BatteryShowPercentage = true;
};
WindowManager = {
EnableTiledWindowMargins = false;
};
trackpad = {
Clicking = true;
};
};
};

homebrew = {
enable = true;
onActivation = {
autoUpdate = true;
};
casks = [
"1password"
"raycast"
"karabiner-elements"
"arc"
"notion"
"discord"
"microsoft-word"
"microsoft-powerpoint"
"microsoft-excel"
"google-drive"
"orbstack"
"visual-studio-code@insiders"
];
};

fonts = {
packages = with pkgs; [
plemoljp-nf
Expand Down
43 changes: 43 additions & 0 deletions nix-darwin/system.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{...}: {
system = {
stateVersion = 5;
defaults = {
NSGlobalDomain = {
AppleShowAllExtensions = true;
# 長押しして出てくるアクセントメニューを消す
ApplePressAndHoldEnabled = false;
# キーリピート
InitialKeyRepeat = 11;
KeyRepeat = 2;
"com.apple.mouse.tapBehavior" = 1;
};
finder = {
AppleShowAllFiles = true;
AppleShowAllExtensions = true;
ShowPathbar = true;
ShowStatusBar = true;
};
dock = {
autohide = true;
show-recents = false;
orientation = "left";
mineffect = "scale";
minimize-to-application = true;
wvous-br-corner = 1;
};
screencapture = {
disable-shadow = true;
};
controlcenter = {
BatteryShowPercentage = true;
};
WindowManager = {
EnableTiledWindowMargins = false;
};
trackpad = {
Clicking = true;
};
};
};

}

0 comments on commit a97f6b9

Please sign in to comment.