Minor tweaks, new homebrew packages

work
mat ess 2022-04-13 09:04:26 -04:00
parent c62c91a140
commit 3a5814ab88
3 changed files with 14 additions and 7 deletions

View File

@ -56,6 +56,7 @@ in
"element" "element"
"firefox" "firefox"
"gog-galaxy" "gog-galaxy"
"jitsi-meet"
"knockknock" "knockknock"
"lagrange" "lagrange"
"lulu" "lulu"
@ -63,8 +64,11 @@ in
"obsidian" "obsidian"
"rectangle" "rectangle"
"signal" "signal"
"slack"
"steam" "steam"
"twitch"
"vscodium" "vscodium"
"zoom"
]; ];
# Configuration related to casks # Configuration related to casks

View File

@ -20,19 +20,20 @@ let
let let
file = "/etc/pam.d/sudo"; file = "/etc/pam.d/sudo";
option = "security.pam.enableSudoTouchIdAuth"; option = "security.pam.enableSudoTouchIdAuth";
sed = "${pkgs.gnused}/bin/sed";
in in
'' ''
${if isEnabled then '' ${if isEnabled then ''
# Enable sudo Touch ID authentication, if not already enabled # Enable sudo Touch ID authentication, if not already enabled
if ! grep 'pam_tid.so' ${file} > /dev/null; then if ! grep 'pam_tid.so' ${file} > /dev/null; then
sed -i "" '2i\ ${sed} -i '2i\
auth sufficient pam_tid.so # nix-darwin: ${option} auth sufficient pam_tid.so # nix-darwin: ${option}
' ${file} ' ${file}
fi fi
'' else '' '' else ''
# Disable sudo Touch ID authentication, if added by nix-darwin # Disable sudo Touch ID authentication, if added by nix-darwin
if grep '${option}' ${file} > /dev/null; then if grep '${option}' ${file} > /dev/null; then
sed -i "" '/${option}/d' ${file} ${sed} -i '/${option}/d' ${file}
fi fi
''} ''}
''; '';
@ -43,7 +44,9 @@ in
security.pam.enableSudoTouchIdAuth = mkEnableOption '' security.pam.enableSudoTouchIdAuth = mkEnableOption ''
Enable sudo authentication with Touch ID Enable sudo authentication with Touch ID
When enabled, this option adds the following line to /etc/pam.d/sudo: When enabled, this option adds the following line to /etc/pam.d/sudo:
auth sufficient pam_tid.so auth sufficient pam_tid.so
(Note that macOS resets this file when doing a system update. As such, sudo (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 authentication with Touch ID won't work after a system update until the nix-darwin
configuration is reapplied.) configuration is reapplied.)

View File

@ -85,11 +85,11 @@ rec {
selection_foreground = "none"; selection_foreground = "none";
# Tab bar # Tab bar
tab_bar_background = "#28344a"; tab_bar_background = "#e9e9ed";
active_tab_foreground = "#787c99"; active_tab_foreground = "#d4d6e4";
active_tab_background = "#3d59a1"; active_tab_background = "#2e7de9";
inactive_tab_foreground = "#16161e"; inactive_tab_foreground = "#8990b3";
inactive_tab_background = "#9aa5ce"; inactive_tab_background = "#c4c8da";
# black # black
color0 = black; color0 = black;
color8 = black; color8 = black;