major fix macos

This commit is contained in:
lsoriano-mcm
2025-08-07 16:03:52 -05:00
parent 2dcdd0b29a
commit 4f7a30197a
4 changed files with 56 additions and 75 deletions
+7 -19
View File
@@ -3,44 +3,32 @@
myConfig,
inputs,
system,
mkArgs,
specialArgs,
...
}: {
imports = [
../../modules/default/darwin.nix
];
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = [];
# Auto upgrade nix package and the daemon service.
# services.nix-daemon.enable = true;
# services.karabiner-elements.enable = true;
# nix.package = pkgs.nix;
# Necessary for using flakes on this system.
nix.settings.experimental-features = "nix-command flakes";
nix.settings.trusted-users = myConfig.optionals.Builds.trustedUsers;
# nix.settings.trusted-users = myConfig.optionals.Builds.trustedUsers;
# Create /etc/zshrc that loads the nix-darwin environment.
programs.zsh.enable = true; # default shell on catalina
programs.fish.enable = true;
# $ darwin-rebuild changelog
system.stateVersion = 5;
# The platform the configuration will be used on.
nixpkgs.hostPlatform = "aarch64-darwin";
security.pam.services.sudo_local.touchIdAuth = true;
users.users.${myConfig.essentials.Username} = {
name = "${myConfig.essentials.Username}";
home = "/Users/${myConfig.essentials.Username}";
# shell = pkgs.${myConfig.general.terminal.Shell}; # no support for nix-darwin, but can be changed via chsh.
users.users.${myConfig.macos.Username} = {
name = "${myConfig.macos.Username}";
home = "/Users/${myConfig.macos.Username}";
};
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = mkArgs system;
home-manager.users.${myConfig.essentials.Username} = import ../../home/darwin.nix;
home-manager.extraSpecialArgs = specialArgs;
home-manager.users.${myConfig.macos.Username} = import ../../home/darwin.nix;
}