Fix nix darwin activation script after update
This commit is contained in:
parent
2972486a85
commit
405af3517e
@ -94,12 +94,6 @@ in
|
|||||||
# $ darwin-rebuild changelog
|
# $ darwin-rebuild changelog
|
||||||
system.stateVersion = 5;
|
system.stateVersion = 5;
|
||||||
|
|
||||||
system.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
|
|
||||||
'';
|
|
||||||
|
|
||||||
system.defaults = {
|
system.defaults = {
|
||||||
dock = {
|
dock = {
|
||||||
autohide = true;
|
autohide = true;
|
||||||
|
|||||||
@ -13,6 +13,15 @@
|
|||||||
"wireshark-chmodbpf"
|
"wireshark-chmodbpf"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
system.primaryUser = "lcech";
|
||||||
|
|
||||||
|
system.activationScripts.postActivation.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.
|
||||||
|
defaults write -g 'com.apple.mouse.linear' 1
|
||||||
|
sudo -u lcech /System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u
|
||||||
|
'';
|
||||||
|
|
||||||
system.defaults.dock.persistent-apps = [
|
system.defaults.dock.persistent-apps = [
|
||||||
"/Applications/Cursor.app"
|
"/Applications/Cursor.app"
|
||||||
"/Applications/Firefox.app"
|
"/Applications/Firefox.app"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user