Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
138 lines (131 loc) · 3.78 KB
/
Copy pathflake.nix
File metadata and controls
138 lines (131 loc) · 3.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
description = "monstro nix-darwin system flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nix-darwin.url = "github:LnL7/nix-darwin/master";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
nix-homebrew.url = "github:zhaofengli-wip/nix-homebrew";
};
outputs = inputs@{ self, nix-darwin, nixpkgs, nix-homebrew }:
let
# https://mynixos.com/nix-darwin/options
configuration = { pkgs, config, ... }: {
nix.settings.experimental-features = "nix-command flakes";
nixpkgs = {
config.allowUnfree = true;
hostPlatform = "aarch64-darwin";
};
# https://search.nixos.org/packages
environment.systemPackages =
[
pkgs.zsh
pkgs.stow
pkgs.fzf
pkgs.bat
pkgs.htop
pkgs.mas
pkgs.bun
pkgs.git
pkgs.lazydocker
pkgs.lazygit
pkgs.awscli2
pkgs.neovim
pkgs.granted
];
# https://formulae.brew.sh/
homebrew = {
enable = true;
brews = [
"nvm"
"starship"
"fastfetch"
];
casks = [
"steam"
"nordvpn"
"discord"
"alt-tab"
"ghostty"
"docker"
"chatgpt"
"postman"
"google-chrome"
"microsoft-edge"
"visual-studio-code"
"the-unarchiver"
"notion-calendar"
"raycast"
"spotify"
"obs"
];
masApps = {
"Signal Shifter" = 6446061552;
"WhatsApp" = 310633997;
"Amphetamine" = 937984704;
"Windows" = 1295203466;
};
onActivation.cleanup = "zap";
onActivation.autoUpdate = true;
onActivation.upgrade = true;
};
programs = {
zsh.enable = true;
tmux.enable = true;
};
# https://mynixos.com/nix-darwin/options/system.defaults
system = {
stateVersion = 5;
configurationRevision = self.rev or self.dirtyRev or null;
defaults = {
dock.autohide = true;
dock.show-recents = false;
dock.minimize-to-application = true;
dock.mineffect = "scale";
dock.appswitcher-all-displays = true;
dock.wvous-bl-corner = 14;
dock.persistent-apps = [
"/Applications/Ghostty.app"
"/Applications/Visual Studio Code.app"
"/Applications/Notion Calendar.app"
"/System/Applications/Notes.app"
"/System/Applications/iPhone Mirroring.app"
"/Applications/Windows App.app"
"/Applications/Microsoft Edge.app"
];
dock.persistent-others = [
"/Users/gabriel/git"
];
finder.NewWindowTarget = "Home";
finder.AppleShowAllExtensions = true;
finder.AppleShowAllFiles = true;
finder.QuitMenuItem = true;
finder.ShowPathbar = true;
finder.FXPreferredViewStyle = "clmv";
finder._FXSortFoldersFirst = true;
finder._FXSortFoldersFirstOnDesktop = true;
loginwindow.GuestEnabled = false;
controlcenter.BatteryShowPercentage = true;
NSGlobalDomain.AppleInterfaceStyle = "Dark";
NSGlobalDomain.KeyRepeat = 2;
NSGlobalDomain."com.apple.keyboard.fnState" = true;
NSGlobalDomain.AppleShowAllExtensions = true;
NSGlobalDomain.AppleShowAllFiles = true;
};
};
};
in
{
darwinConfigurations."monstro" = nix-darwin.lib.darwinSystem {
modules = [
configuration
nix-homebrew.darwinModules.nix-homebrew
{
nix-homebrew = {
enable = true;
user = "gabriel";
};
}
];
};
};
}