From 3a5814ab88798ea7e247a2840730e971a3285515 Mon Sep 17 00:00:00 2001 From: mat ess Date: Wed, 13 Apr 2022 09:04:26 -0400 Subject: [PATCH] Minor tweaks, new homebrew packages --- darwin/homebrew.nix | 4 ++++ modules/darwin/security/pam.nix | 7 +++++-- overlays/colors/tokyonight.nix | 10 +++++----- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/darwin/homebrew.nix b/darwin/homebrew.nix index efe6ac9..6bc77fb 100644 --- a/darwin/homebrew.nix +++ b/darwin/homebrew.nix @@ -56,6 +56,7 @@ in "element" "firefox" "gog-galaxy" + "jitsi-meet" "knockknock" "lagrange" "lulu" @@ -63,8 +64,11 @@ in "obsidian" "rectangle" "signal" + "slack" "steam" + "twitch" "vscodium" + "zoom" ]; # Configuration related to casks diff --git a/modules/darwin/security/pam.nix b/modules/darwin/security/pam.nix index 5a8620d..a3e19d8 100644 --- a/modules/darwin/security/pam.nix +++ b/modules/darwin/security/pam.nix @@ -20,19 +20,20 @@ let let file = "/etc/pam.d/sudo"; option = "security.pam.enableSudoTouchIdAuth"; + sed = "${pkgs.gnused}/bin/sed"; in '' ${if isEnabled then '' # Enable sudo Touch ID authentication, if not already enabled if ! grep 'pam_tid.so' ${file} > /dev/null; then - sed -i "" '2i\ + ${sed} -i '2i\ auth sufficient pam_tid.so # nix-darwin: ${option} ' ${file} fi '' else '' # Disable sudo Touch ID authentication, if added by nix-darwin if grep '${option}' ${file} > /dev/null; then - sed -i "" '/${option}/d' ${file} + ${sed} -i '/${option}/d' ${file} fi ''} ''; @@ -43,7 +44,9 @@ in security.pam.enableSudoTouchIdAuth = mkEnableOption '' Enable sudo authentication with Touch ID When enabled, this option adds the following line to /etc/pam.d/sudo: + auth sufficient pam_tid.so + (Note that macOS resets this file when doing a system update. As such, sudo authentication with Touch ID won't work after a system update until the nix-darwin configuration is reapplied.) diff --git a/overlays/colors/tokyonight.nix b/overlays/colors/tokyonight.nix index e8ab6cf..8319b8e 100644 --- a/overlays/colors/tokyonight.nix +++ b/overlays/colors/tokyonight.nix @@ -85,11 +85,11 @@ rec { selection_foreground = "none"; # Tab bar - tab_bar_background = "#28344a"; - active_tab_foreground = "#787c99"; - active_tab_background = "#3d59a1"; - inactive_tab_foreground = "#16161e"; - inactive_tab_background = "#9aa5ce"; + tab_bar_background = "#e9e9ed"; + active_tab_foreground = "#d4d6e4"; + active_tab_background = "#2e7de9"; + inactive_tab_foreground = "#8990b3"; + inactive_tab_background = "#c4c8da"; # black color0 = black; color8 = black;