mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 16:10:14 +00:00
fix: nix-darwin deprecations of useractivationscripts
This commit is contained in:
@ -9,8 +9,8 @@
|
|||||||
# Homebrew - Mac-specific packages that aren't in Nix
|
# Homebrew - Mac-specific packages that aren't in Nix
|
||||||
config = lib.mkIf pkgs.stdenv.isDarwin {
|
config = lib.mkIf pkgs.stdenv.isDarwin {
|
||||||
|
|
||||||
# Requires Homebrew to be installed
|
# # Requires Homebrew to be installed
|
||||||
system.activationScripts.preUserActivation.text = ''
|
system.activationScripts.preActivation.text = ''
|
||||||
if ! xcode-select --version 2>/dev/null; then
|
if ! xcode-select --version 2>/dev/null; then
|
||||||
$DRY_RUN_CMD xcode-select --install
|
$DRY_RUN_CMD xcode-select --install
|
||||||
fi
|
fi
|
||||||
|
@ -15,7 +15,7 @@ in
|
|||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
# Requires Homebrew to be installed
|
# Requires Homebrew to be installed
|
||||||
system.activationScripts.preUserActivation.text = ''
|
system.activationScripts.preActivation.text = ''
|
||||||
if ! xcode-select --version 2>/dev/null; then
|
if ! xcode-select --version 2>/dev/null; then
|
||||||
$DRY_RUN_CMD xcode-select --install
|
$DRY_RUN_CMD xcode-select --install
|
||||||
fi
|
fi
|
||||||
|
@ -59,7 +59,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
# User-level settings
|
# User-level settings
|
||||||
system.activationScripts.postUserActivation.text = ''
|
system.activationScripts.postActivation.text = ''
|
||||||
echo "Show the ~/Library folder"
|
echo "Show the ~/Library folder"
|
||||||
chflags nohidden ~/Library
|
chflags nohidden ~/Library
|
||||||
'';
|
'';
|
||||||
|
@ -18,7 +18,7 @@ in
|
|||||||
|
|
||||||
homebrew.casks = [ "hammerspoon" ];
|
homebrew.casks = [ "hammerspoon" ];
|
||||||
|
|
||||||
system.activationScripts.postUserActivation.text = ''
|
system.activationScripts.postActivation.text = ''
|
||||||
defaults write org.hammerspoon.Hammerspoon MJConfigFile "${
|
defaults write org.hammerspoon.Hammerspoon MJConfigFile "${
|
||||||
config.home-manager.users.${username}.xdg.configHome
|
config.home-manager.users.${username}.xdg.configHome
|
||||||
}/hammerspoon/init.lua"
|
}/hammerspoon/init.lua"
|
||||||
|
@ -15,7 +15,7 @@ in
|
|||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
# User-level settings
|
# User-level settings
|
||||||
system.activationScripts.postUserActivation.text = ''
|
system.activationScripts.postActivation.text = ''
|
||||||
echo "Reduce Menu Bar padding"
|
echo "Reduce Menu Bar padding"
|
||||||
defaults write -globalDomain NSStatusItemSelectionPadding -int 6
|
defaults write -globalDomain NSStatusItemSelectionPadding -int 6
|
||||||
defaults write -globalDomain NSStatusItemSpacing -int 6
|
defaults write -globalDomain NSStatusItemSpacing -int 6
|
||||||
|
@ -14,6 +14,8 @@ in
|
|||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
|
system.primaryUser = config.nmasur.settings.username;
|
||||||
|
|
||||||
nmasur.presets = {
|
nmasur.presets = {
|
||||||
programs = {
|
programs = {
|
||||||
fish.enable = lib.mkDefault true;
|
fish.enable = lib.mkDefault true;
|
||||||
|
Reference in New Issue
Block a user