Skip to content

Commit de6856d

Browse files
committed
feat: upgrade darwin nix modules
1 parent 87e5876 commit de6856d

File tree

4 files changed

+57
-186
lines changed

4 files changed

+57
-186
lines changed

flake.lock

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

home-manager/mac/home.nix

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,8 @@
4646

4747
programs.alacritty = {
4848
enable = true;
49+
theme = "catppuccin_mocha";
4950
settings = {
50-
general = {
51-
import = [
52-
"${pkgs.alacritty-theme}/catppuccin_mocha.toml"
53-
];
54-
};
5551
env = {
5652
TERM = "xterm-256color";
5753
};
@@ -101,7 +97,7 @@
10197
shellAliases = {
10298
l = "eza -lh --git --octal-permissions";
10399
ll = "eza -la --git --octal-permissions";
104-
darwin-switch = "darwin-rebuild switch --flake ~/nixos-config";
100+
darwin-switch = "sudo darwin-rebuild switch --flake ~/nixos-config";
105101
home-switch = "home-manager switch --flake ~/nixos-config";
106102
};
107103
interactiveShellInit = ''

hosts/mac/configuration.nix

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,21 @@
1313
programs.fish.enable = true;
1414

1515
# Enable TouchID for sudo authentication
16-
security.pam.enableSudoTouchIdAuth = true;
16+
security.pam.services.sudo_local.touchIdAuth = true;
1717

1818
services = {
1919
yabai.enable = true;
2020
skhd.enable = true;
21+
tailscale.enable = true;
2122
};
2223

2324
fonts.packages = [
2425
pkgs.nerd-fonts.jetbrains-mono
2526
];
2627

28+
# Set primary user
29+
system.primaryUser = "jonathan";
30+
2731
system.defaults = {
2832
dock =
2933
{
@@ -35,6 +39,10 @@
3539
"/System/Applications/Launchpad.app"
3640
];
3741
};
42+
finder = {
43+
AppleShowAllExtensions = true;
44+
AppleShowAllFiles = true;
45+
};
3846
};
3947

4048
homebrew = {
@@ -48,6 +56,8 @@
4856
];
4957
casks = [
5058
"docker"
59+
"tailscale"
60+
"postman"
5161
];
5262
};
5363

0 commit comments

Comments
 (0)