From cfe9ec8c6bd81fb3da4a639cae7fb0ba1cb2a33f Mon Sep 17 00:00:00 2001 From: Ethan Brady Date: Fri, 11 Oct 2024 13:14:16 -0600 Subject: [PATCH] readme typo fix (#1) * Cleaned up and removed comments * Added neofetch and bat to the packages * Added biometric authentication for sudo * Disabled mouse acceleration * Set dock to autohide * Fixed a typo from Githug -> Github --- README.md | 2 +- hosts/macbook-air/configuration.nix | 24 +++++++++++++++--------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 551504e..40dc71f 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ### MacOS -[Nix Darwin Githug Repo](https://github.com/LnL7/nix-darwin/blob/master/README.md) +[Nix Darwin Github Repo](https://github.com/LnL7/nix-darwin/blob/master/README.md) 1. Install Nix diff --git a/hosts/macbook-air/configuration.nix b/hosts/macbook-air/configuration.nix index cb3eaba..9980a09 100644 --- a/hosts/macbook-air/configuration.nix +++ b/hosts/macbook-air/configuration.nix @@ -1,25 +1,31 @@ { pkgs, ... }: { - # List packages installed in system profile. To search by name, run: - # $ nix-env -qaP | grep wget - environment.systemPackages = - [ pkgs.vim - ]; + environment.systemPackages = with pkgs; [ + vim + neofetch + bat + ]; # Auto upgrade nix package and the daemon service. services.nix-daemon.enable = true; - # nix.package = pkgs.nix; # Necessary for using flakes on this system. nix.settings.experimental-features = "nix-command flakes"; # Create /etc/zshrc that loads the nix-darwin environment. - programs.zsh.enable = true; # default shell on catalina - # programs.fish.enable = true; + programs.zsh.enable = true; + + # Allow sudo commands to be run with biometrics + security.pam.enableSudoTouchIdAuth = true; + + # Disable mouse acceleration + system.defaults.".GlobalPreferences"."com.apple.mouse.scaling" = -1.0; + + # Set the dock to automatically hide + system.defaults.dock.autohide = true; # Used for backwards compatibility, please read the changelog before changing. - # $ darwin-rebuild changelog system.stateVersion = 5; # The platform the configuration will be used on.