38 lines
874 B
Nix
38 lines
874 B
Nix
{
|
|
inputs,
|
|
myConfig,
|
|
pkgs,
|
|
system,
|
|
...
|
|
}: {
|
|
imports = [
|
|
inputs.home-manager.darwinModules.home-manager
|
|
];
|
|
|
|
nix.settings.experimental-features = "nix-command flakes";
|
|
|
|
programs = {
|
|
zsh.enable = true;
|
|
fish.enable = true;
|
|
home-manager.enable = true;
|
|
};
|
|
|
|
nixpkgs.hostPlatform = "aarch64-darwin";
|
|
security.pam.services.sudo_local.touchIdAuth = true;
|
|
|
|
users.users.${myConfig.Darwin.username} = {
|
|
name = "${myConfig.Darwin.username}";
|
|
home = "/Users/${myConfig.Darwin.username}";
|
|
# shell = pkgs.${myConfig.general.terminal.Shell}; # no support for nix-darwin, but can be changed via chsh.
|
|
};
|
|
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
extraSpecialArgs = {inherit pkgs system;};
|
|
users.${myConfig.Darwin.username} = import ../../../home/darwin/home.nix;
|
|
};
|
|
|
|
system.stateVersion = 5;
|
|
}
|