Minor tweaks, new homebrew packages
parent
c62c91a140
commit
3a5814ab88
|
@ -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
|
||||
|
|
|
@ -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.)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue