nix-darwin

This commit is contained in:
whoami 2025-10-11 18:45:35 +01:00
parent d31cb14b88
commit ebb2a87ca7
6 changed files with 67 additions and 52 deletions

View file

@ -0,0 +1,10 @@
{pkgs, ...}:
{
imports = [
./packages.nix
../../modules/darwin/js0ny/brew.nix
../../modules/darwin/js0ny/dock.nix
../../modules/darwin/js0ny/system.nix
];
time.timeZone = "Europe/London";
}

View file

@ -0,0 +1,5 @@
{ config, pkgs, ... }:
{
time.timeZone = "Europe/London";
}

View file

@ -25,7 +25,6 @@
"neovide"
"clash-verge-rev"
"obsidian"
"mullvad-vpn"
"alacritty"
"alt-tab"
"apparency"
@ -40,7 +39,7 @@
"ltspice"
"orbstack"
"qlcolorcode"
# "qlimagesize" discontinued.
# "qlimagesize" discontinued.
"qlmarkdown"
"qlstephen"
"qlvideo"
@ -60,7 +59,7 @@
"TickTick"
"cherry-studio"
"firefox"
"Wireshark"
"wireshark-app"
"LibreWolf"
"brave-browser"
"font-maple-mono-nf-cn"

View file

@ -0,0 +1,47 @@
{ config, pkgs, ... }:
{
system.defaults.dock = {
appswitcher-all-displays = true;
autohide = true;
# Launch Animation
launchanim = false;
# Minimize Animation
mineffect = "suck";
minimize-to-application = true;
persistent-apps = [
{ app = "/Applications/Vivaldi.app"; }
{ app = "/Applications/kitty.app"; }
{ app = "/Applications/Obsidian.app"; }
{ app = "Applications/Visual Studio Code.app"; }
# { app = "/Applications/LibreWolf.app"; }
# { spacer = { small = false; }; }
# { spacer = { small = true; }; }
# { folder = "/System/Applications/Utilities"; }
# { folder = "/Users/js0ny/Downloads/"; }
];
persistent-others = [
"/Users/js0ny/Downloads"
# "/Users/js0ny/Source"
];
show-recents = false;
orientation = "bottom";
# tr - Top Right
# tl - Top Left (disable this)
# br - Bottom Right
# bl - Bottom Left
# `1`: Disabled
# `2`: Mission Control
# `3`: Application Windows
# `4`: Desktop
# `5`: Start Screen Saver
# `6`: Disable Screen Saver
# `7`: Dashboard
# `10`: Put Display to Sleep
# `11`: Launchpad
# `12`: Notification Center
# `13`: Lock Screen
# `14`: Quick Note
wvous-tr-corner = 2;
wvous-bl-corner = 11; # Simulate Windows button on Windows
wvous-br-corner = 4;
};}

View file

@ -1,53 +1,6 @@
{ config, pkgs, ... }:
{
time.timeZone = "Asia/Shanghai";
{
system.defaults = {
dock = {
appswitcher-all-displays = true;
autohide = true;
# Launch Animation
launchanim = false;
# Minimize Animation
mineffect = "suck";
minimize-to-application = true;
persistent-apps = [
{ app = "/Applications/Vivaldi.app"; }
{ app = "/Applications/kitty.app"; }
{ app = "/Applications/Obsidian.app"; }
{ app = "Applications/Visual Studio Code.app"; }
{ app = "/Applications/LibreWolf.app"; }
# { spacer = { small = false; }; }
# { spacer = { small = true; }; }
# { folder = "/System/Applications/Utilities"; }
# { folder = "/Users/js0ny/Downloads/"; }
];
persistent-others = [
"/Users/js0ny/Downloads"
"/Users/js0ny/Source"
];
show-recents = false;
orientation = "bottom";
# tr - Top Right
# tl - Top Left (disable this)
# br - Bottom Right
# bl - Bottom Left
# `1`: Disabled
# `2`: Mission Control
# `3`: Application Windows
# `4`: Desktop
# `5`: Start Screen Saver
# `6`: Disable Screen Saver
# `7`: Dashboard
# `10`: Put Display to Sleep
# `11`: Launchpad
# `12`: Notification Center
# `13`: Lock Screen
# `14`: Quick Note
wvous-tr-corner = 2;
wvous-bl-corner = 11; # Simulate Windows button on Windows
wvous-br-corner = 4;
};
finder = {
AppleShowAllFiles = true;
ShowStatusBar = true;
@ -111,4 +64,5 @@
ShowSeconds = true;
};
};
}
}