Add darwin configuration into

This commit is contained in:
Laurent Gueret
2026-02-11 13:15:26 +01:00
parent 80e5d0b8b5
commit e75b09a750
71 changed files with 562 additions and 151 deletions
+34
View File
@@ -0,0 +1,34 @@
{ ... }:
{
home-manager.users.alistreaza = {
home = {
username = "alistreaza";
homeDirectory = /Users/alistreaza;
};
# No Home Application Folders
targets.darwin.linkApps.enable = false;
targets.darwin.copyApps.enable = false;
# Apps
home.shell.zsh = true;
home.shell.git = true;
# Homebrew apps
home.homebrew.iterm = true;
home.homebrew.zed = true;
home.homebrew.jetbrain = true;
home.homebrew.iina = true;
home.homebrew.zen = true;
home.homebrew.obsidian = true;
home.homebrew.microsoft = true;
home.homebrew.keka = true;
# The state version is required and should stay at the version you
# originally installed.
home.stateVersion = "25.11";
};
}
+9
View File
@@ -0,0 +1,9 @@
{ import-tree, ... }:
{
imports = [
./partials/users.nix
(import-tree ./apps)
];
nixpkgs.hostPlatform = "aarch64-darwin";
}
@@ -0,0 +1,5 @@
{ config, ... }:
{
homebrew.enable = true;
homebrew.taps = builtins.attrNames config.nix-homebrew.taps;
}
@@ -0,0 +1,28 @@
{
homebrew-core,
homebrew-cask,
...
}:
{
nix-homebrew = {
# User owning the Homebrew prefix
user = "alistreaza";
# Install Homebrew under the default prefix
enable = true;
# Apple Silicon Only: Also install Homebrew under the default Intel prefix for Rosetta 2
enableRosetta = false;
# Optional: Declarative tap management
taps = {
"homebrew/homebrew-core" = homebrew-core;
"homebrew/homebrew-cask" = homebrew-cask;
};
# Optional: Enable fully-declarative tap management
#
# With mutableTaps disabled, taps can no longer be added imperatively with `brew tap`.
mutableTaps = false;
};
}
+30
View File
@@ -0,0 +1,30 @@
{ self, ... }:
{
# Add ability to use TouchID for sudo
security.pam.services.sudo_local.touchIdAuth = true;
system = {
stateVersion = 6;
configurationRevision = self.rev or self.dirtyRev or null;
defaults = {
controlcenter.BatteryShowPercentage = true;
dock = {
show-recents = false;
tilesize = 30;
autohide = false;
orientation = "bottom";
};
finder = {
ShowHardDrivesOnDesktop = false;
ShowMountedServersOnDesktop = false;
ShowExternalHardDrivesOnDesktop = false;
ShowRemovableMediaOnDesktop = false;
FXRemoveOldTrashItems = true;
NewWindowTarget = "Home";
};
loginwindow = {
GuestEnabled = false;
};
};
};
}
+8
View File
@@ -0,0 +1,8 @@
{ ... }:
{
users.users = {
alistreaza = {
home = /Users/alistreaza;
};
};
}