mirror of
https://github.com/cupcakearmy/nix-macos.git
synced 2025-01-22 07:16:28 +00:00
add some macos config
This commit is contained in:
parent
84b5e059b9
commit
7000d01f6b
@ -13,5 +13,5 @@ curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix
|
||||
git clone https://github.com/cupcakearmy/nix-macos ~/.config/nix-darwin
|
||||
|
||||
# Installation
|
||||
nix run nix-darwin -- switch --flake ~/.config/nix-darwin#sflx
|
||||
nix run nix-darwin -- switch --flake ~/.config/nix-darwin#mbp
|
||||
```
|
||||
|
26
flake.nix
26
flake.nix
@ -37,9 +37,25 @@
|
||||
# https://daiderd.com/nix-darwin/manual/index.html
|
||||
environment.systemPackages = [ ];
|
||||
|
||||
# Security
|
||||
system.defaults.screensaver.askForPassword = true;
|
||||
system.defaults.screensaver.askForPasswordDelay = 0;
|
||||
system.defaults.loginwindow.GuestEnabled = false;
|
||||
|
||||
# Dock
|
||||
system.defaults.dock.autohide = true;
|
||||
system.defaults.dock.orientation = "left";
|
||||
system.defaults.finder.AppleShowAllExtensions = true;
|
||||
system.defaults.dock.show-recents = false;
|
||||
system.defaults.dock.persistent-apps = [
|
||||
"/Applications/Arc.app"
|
||||
"/Applications/Ghostty.app"
|
||||
"/Applications/VSCodium.app"
|
||||
"/Applications/Spotify.app"
|
||||
"/System/Applications/System Settings.app"
|
||||
];
|
||||
system.defaults.dock.persistent-others = [ ];
|
||||
|
||||
# Input devices
|
||||
system.keyboard.enableKeyMapping = true;
|
||||
system.keyboard.remapCapsLockToEscape = true;
|
||||
system.defaults.NSGlobalDomain.InitialKeyRepeat = 25;
|
||||
@ -48,6 +64,10 @@
|
||||
system.defaults.NSGlobalDomain."com.apple.trackpad.scaling" = 0.875;
|
||||
system.defaults.trackpad.Dragging = true;
|
||||
|
||||
# Finder
|
||||
system.defaults.finder.AppleShowAllExtensions = true;
|
||||
system.defaults.finder.ShowPathbar = true;
|
||||
|
||||
users.users."niccoloborgioli" = {
|
||||
home = "/Users/niccoloborgioli";
|
||||
shell = pkgs.fish;
|
||||
@ -67,7 +87,7 @@
|
||||
{
|
||||
# Build darwin flake using:
|
||||
# $ darwin-rebuild build --flake .#Niccolo-Borgioli-s-MacBook-Pro
|
||||
darwinConfigurations."sflx" = nix-darwin.lib.darwinSystem {
|
||||
darwinConfigurations."mbp" = nix-darwin.lib.darwinSystem {
|
||||
modules = [
|
||||
configuration
|
||||
home-manager.darwinModules.home-manager
|
||||
@ -80,6 +100,6 @@
|
||||
};
|
||||
|
||||
# Expose the package set, including overlays, for convenience.
|
||||
darwinPackages = self.darwinConfigurations."sflx".pkgs;
|
||||
darwinPackages = self.darwinConfigurations."mbp".pkgs;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user