mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-26 03:11:32 +01:00
fix(darwin): nix-darwin - activation option & zsh option
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{pkgs, ...}:
|
||||
{pkgs, myvars, ...}:
|
||||
###################################################################################
|
||||
#
|
||||
# macOS's System configuration
|
||||
@@ -22,12 +22,7 @@
|
||||
time.timeZone = "Asia/Shanghai";
|
||||
|
||||
system = {
|
||||
# activationScripts are executed every time you boot the system or run `nixos-rebuild` / `darwin-rebuild`.
|
||||
activationScripts.postUserActivation.text = ''
|
||||
# activateSettings -u will reload the settings from the database and apply them to the current session,
|
||||
# so we do not need to logout and login again to make the changes take effect.
|
||||
/System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u
|
||||
'';
|
||||
primaryUser = myvars.username;
|
||||
|
||||
defaults = {
|
||||
menuExtraClock.Show24Hour = true; # show 24 hour clock
|
||||
|
||||
Reference in New Issue
Block a user