added nix-darwin support

Signed-off-by: elwrcl <[email protected]>
This commit is contained in:
elwrcl committed 2026-04-22 23:19:17 +03:00
1 parent 48495d5c0b
commit c8e53bf645
7 files changed
+388 -265

No files matched your search

+46
View File
@@ -0,0 +1,46 @@
{
pkgs,
inputs,
system,
...
}:
{
system.stateVersion = 6;
nixpkgs.hostPlatform = system;
users.users.elars = {
home = "/Users/elars";
shell = pkgs.zsh;
};
programs.zsh.enable = true;
nix.settings = {
experimental-features = [
"nix-command"
"flakes"
];
substituters = [
"https://cache.nixos.org"
"https://nix-community.cachix.org"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
system.defaults = {
dock.autohide = true;
finder.AppleShowAllExtensions = true;
NSGlobalDomain.AppleInterfaceStyle = "Dark";
NSGlobalDomain.KeyRepeat = 2;
NSGlobalDomain.InitialKeyRepeat = 15;
};
programs.nh = {
enable = true;
flake = "/Users/elars/copland";
};
}