commit fbe85cd3ad377f143ec8eaf134c84becfc3fc108
parent e79aade2d05ba37f2df58a271ef91c54456a17de
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 20 Mar 2022 18:16:59 +0100
parent e79aade2d05ba37f2df58a271ef91c54456a17de
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 20 Mar 2022 18:16:59 +0100
machines/blechbuechse: set default shell on systemActivation, enbale TouchId for `sudo`
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/machines/blechbuechse/darwin-configuration.nix b/machines/blechbuechse/darwin-configuration.nix @@ -66,6 +66,17 @@ in { { HIDKeyboardModifierMappingSrc = 30064771302; HIDKeyboardModifierMappingDst = 30064771303; } ]; }; + system.activationScripts.postActivation.text = '' + # Set the default shell to bash. MacOS doesn't do this like nixOS does + sudo chsh -s ${pkgs.bashInteractive}/bin/bash leah + + # Enable sudo Touch ID authentication, if not already enabled + if ! grep 'pam_tid.so' /etc/pam.d/sudo > /dev/null; then + sed -i "" '2i\ + auth sufficient pam_tid.so # use TouchID with sudo + ' /etc/pam.d/sudo + fi + ''; system.activationScripts.extraSystemSettings.text = '' # Sleep display after 30 minutes