Update mac config

This commit is contained in:
Arnie 2025-01-05 09:36:27 +01:00
parent 14d2c99c8b
commit ba1ccc492d
2 changed files with 25 additions and 7 deletions

View File

@ -10,9 +10,6 @@ let
zshSourceCommon = ../.zsh/common; zshSourceCommon = ../.zsh/common;
in in
{ {
nixGL.packages = pkgs.nixgl;
nixGL.defaultWrapper = "nvidia";
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; programs.home-manager.enable = true;
@ -34,6 +31,13 @@ in
nix-direnv.enable = true; nix-direnv.enable = true;
}; };
programs.ghostty = {
enable = true;
installVimSyntax = true;
enableZshIntegration = true;
};
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Lukas Cech"; userName = "Lukas Cech";
@ -63,6 +67,7 @@ in
dirHashes = { dirHashes = {
mac = "${homedir}/.macshare"; mac = "${homedir}/.macshare";
nix = "${homedir}/.config/nix";
}; };
initExtra = '' initExtra = ''

View File

@ -60,9 +60,6 @@
# The platform the configuration will be used on. # The platform the configuration will be used on.
nixpkgs.hostPlatform = "aarch64-darwin"; nixpkgs.hostPlatform = "aarch64-darwin";
# Necessary for using flakes on this system.
nix.settings.experimental-features = "nix-command flakes";
# Set Git commit hash for darwin-version. # Set Git commit hash for darwin-version.
system.configurationRevision = self.rev or self.dirtyRev or null; system.configurationRevision = self.rev or self.dirtyRev or null;
@ -80,6 +77,22 @@
ShowStatusBar = true; # show status bar ShowStatusBar = true; # show status bar
}; };
}; };
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
nix = {
configureBuildUsers = true;
distributedBuilds = true;
gc = {
automatic = true;
options = "--delete-older-than 7d";
};
settings = {
experimental-features = "nix-command flakes";
};
};
}; };
in in
{ {
@ -113,7 +126,7 @@
# nix run nix-darwin -- switch --flake ~/.config/nix # nix run nix-darwin -- switch --flake ~/.config/nix
# update with # update with
# darwin-rebuild switch --flake ~/.config/nix # darwin-rebuild switch --flake ~/.config/nix
lcech-mac-veracode = nix-darwin.lib.darwinSystem { lcech-mac-veracode.system = nix-darwin.lib.darwinSystem {
system = "aarch64-darwin"; system = "aarch64-darwin";
modules = [ modules = [
darwin-common darwin-common