Files
nix-darwin-config/modules/darwin/system/appearance.nix

44 lines
1.4 KiB
Nix

{ config, pkgs, lib, username, ... }:
let
homeDirectory = "/Users/${username}";
in
{
# If you also want to do e.g. Dock preferences from the same user-level file:
system.defaults.dock = {
autohide = true;
orientation = "bottom";
persistent-apps = [
"/System/Applications/Launchpad.app"
"/Applications/Vivaldi.app"
"/Applications/Brave Browser.app"
"/Applications/Ghostty.app"
"/Applications/Cursor.app"
"/Applications/Freelens.app"
# Use the nixpkgs path to the app for apps installed via nix. This will automatically use the latest nix store path.
"/${pkgs.slack}/Applications/Slack.app"
"/${pkgs.discord}/Applications/Discord.app"
"/Applications/Spotify.app"
"/Applications/joplin.app"
# Add your persistent apps here
];
persistent-others = [
"${homeDirectory}/code"
"${homeDirectory}/Downloads"
"${homeDirectory}/Applications/Home Manager Apps"
# Add your persistent others here
];
show-recents = false;
tilesize = 36; # Set the icon size on the dock; default is 64
};
system.defaults.NSGlobalDomain = {
AppleInterfaceStyle = "Dark"; # "Dark" or "Light" - Darkmode all the things
# Add more NSGlobalDomain settings here
};
system.defaults.loginwindow = {
GuestEnabled = false; # Disable guest account
LoginwindowText = "Super Awesome Mac"; # Set login window text
# Add more loginwindow settings here
};
}