1
0
Fork 0
nix-system-configurations/nix-darwin/macos/configuration.nix

70 lines
1.4 KiB
Nix

# SPDX-FileCopyrightText: 2025 Ethan Reece <contact@ethanreece.com>
#
# SPDX-License-Identifier: MIT
{
config,
inputs,
pkgs,
...
}:
let
username = "ethanreece";
homeDirectory = "/Users/${username}";
in
{
imports = [
inputs.home-manager.darwinModules.home-manager
inputs.lix-module.nixosModules.default
inputs.stylix.darwinModules.stylix
inputs.sops-nix.darwinModules.sops
];
nixpkgs.config.allowUnfree = true;
system = {
stateVersion = 6;
primaryUser = username;
};
users.users.${username} = {
name = username;
home = homeDirectory;
shell = pkgs.nushell;
};
nix = {
linux-builder.enable = true;
# spellchecker:off
extraOptions = ''
auto-optimise-store = true
experimental-features = nix-command flakes
extra-platforms = aarch64-darwin
'';
# spellchecker:on
};
programs = {
fish.enable = true;
zsh.enable = true;
};
homebrew = {
enable = true;
brews = [ "ollama" ];
casks = [
"ollama-app"
"orion"
"qobuz"
"webex"
];
};
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit inputs username homeDirectory; };
users.${username} = {
imports = [ ../../home-manager/macos/home.nix ];
};
};
stylix = (import ../../stylix { inherit config pkgs; }) // {
homeManagerIntegration = {
autoImport = false;
followSystem = false;
};
};
}