mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
chezmoi: arch electron flags
This commit is contained in:
parent
f9b716c07d
commit
a891f968f8
10 changed files with 15 additions and 10 deletions
70
dot_config/nix-config/hosts/macbook/brew.nix
Normal file
70
dot_config/nix-config/hosts/macbook/brew.nix
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
{ config, pkgs, ...}:
|
||||
|
||||
{
|
||||
homebrew = {
|
||||
enable = true;
|
||||
brewPrefix = "/opt/homebrew/bin";
|
||||
taps = [
|
||||
"daipeihust/tap"
|
||||
"felixkratz/formulae"
|
||||
"koekeishiya/formulae"
|
||||
"nikitabobko/tap"
|
||||
"railwaycat/emacsmacport"
|
||||
"js0ny/tap"
|
||||
];
|
||||
|
||||
brews = [
|
||||
"folderify"
|
||||
"coreutils"
|
||||
];
|
||||
|
||||
casks = [
|
||||
"visual-studio-code"
|
||||
"kitty"
|
||||
"vivaldi"
|
||||
"neovide"
|
||||
"clash-verge-rev"
|
||||
"obsidian"
|
||||
"mullvad-vpn"
|
||||
"alacritty"
|
||||
"alt-tab"
|
||||
"apparency"
|
||||
"betterdisplay"
|
||||
"discord"
|
||||
"dotnet-sdk"
|
||||
"iina"
|
||||
"iterm2"
|
||||
"karabiner-elements"
|
||||
"keka"
|
||||
"localsend"
|
||||
"ltspice"
|
||||
"orbstack"
|
||||
"qlcolorcode"
|
||||
# "qlimagesize" discontinued.
|
||||
"qlmarkdown"
|
||||
"qlstephen"
|
||||
"qlvideo"
|
||||
"qspace-pro"
|
||||
"quicklook-json"
|
||||
"quicklookase"
|
||||
"raycast"
|
||||
"rider"
|
||||
"rustdesk"
|
||||
"scroll-reverser"
|
||||
"sioyek"
|
||||
"skim"
|
||||
"squirrel"
|
||||
"steam"
|
||||
"telegram-desktop"
|
||||
"Filen"
|
||||
"TickTick"
|
||||
"cherry-studio"
|
||||
"firefox"
|
||||
"Wireshark"
|
||||
"LibreWolf"
|
||||
"brave-browser"
|
||||
"font-maple-mono-nf-cn"
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
54
dot_config/nix-config/hosts/macbook/default.nix
Normal file
54
dot_config/nix-config/hosts/macbook/default.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Managed by Determinate
|
||||
nix.enable = false;
|
||||
system.stateVersion = 6;
|
||||
system.primaryUser = "js0ny";
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
vim
|
||||
wget
|
||||
age
|
||||
aichat
|
||||
bat
|
||||
btop
|
||||
cmake
|
||||
coreutils
|
||||
curlie
|
||||
dos2unix
|
||||
duf
|
||||
dust
|
||||
duti
|
||||
fastfetch
|
||||
fd
|
||||
ffmpeg
|
||||
fish
|
||||
fzf
|
||||
delta
|
||||
glow
|
||||
go
|
||||
hyperfine
|
||||
imagemagick
|
||||
just
|
||||
lazygit
|
||||
less
|
||||
lsd
|
||||
neovim
|
||||
nushell
|
||||
pandoc
|
||||
procs
|
||||
pnpm
|
||||
ripgrep
|
||||
ripgrep-all
|
||||
starship
|
||||
tlrc
|
||||
tmux
|
||||
uv
|
||||
zoxide
|
||||
];
|
||||
|
||||
programs.zsh.enable = true;
|
||||
|
||||
}
|
||||
114
dot_config/nix-config/hosts/macbook/system.nix
Normal file
114
dot_config/nix-config/hosts/macbook/system.nix
Normal file
|
|
@ -0,0 +1,114 @@
|
|||
{ 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;
|
||||
ShowPathbar = true;
|
||||
FXRemoveOldTrashItems = true;
|
||||
AppleShowAllExtensions = true;
|
||||
QuitMenuItem = true;
|
||||
ShowExternalHardDrivesOnDesktop = false;
|
||||
ShowRemovableMediaOnDesktop = false;
|
||||
# This will look show full path in title bar
|
||||
# For example: /Users/username/Downloads
|
||||
# instead of just Downloads
|
||||
_FXShowPosixPathInTitle = false;
|
||||
_FXSortFoldersFirst = true;
|
||||
FXEnableExtensionChangeWarning = false;
|
||||
# Use `Home` instead of `PfHm`
|
||||
# nix-darwin won't parse `PfHm`
|
||||
NewWindowTarget = "Home";
|
||||
};
|
||||
trackpad = {
|
||||
TrackpadRightClick = true;
|
||||
TrackpadThreeFingerDrag = true;
|
||||
};
|
||||
screencapture = {
|
||||
location = "~/Pictures/Screenshots";
|
||||
type = "png";
|
||||
include-date = true;
|
||||
};
|
||||
SoftwareUpdate.AutomaticallyInstallMacOSUpdates = false;
|
||||
".GlobalPreferences" = {
|
||||
"com.apple.sound.beep.sound" = "/System/Library/Sounds/Blow.aiff";
|
||||
};
|
||||
NSGlobalDomain = {
|
||||
AppleInterfaceStyle = "Dark";
|
||||
AppleInterfaceStyleSwitchesAutomatically = true;
|
||||
AppleShowAllExtensions = true;
|
||||
# Use Fn key as standard function keys instead of media keys
|
||||
"com.apple.keyboard.fnState" = true;
|
||||
AppleMeasurementUnits = "Centimeters";
|
||||
AppleICUForce24HourTime = true;
|
||||
};
|
||||
controlcenter.BatteryShowPercentage = true;
|
||||
# Fn usage:
|
||||
# 0: Show Emoji & Symbols
|
||||
# 1: Change Input Source
|
||||
# 2: Show Emoji & Symbols
|
||||
# 3: Start Dictation
|
||||
hitoolbox.AppleFnUsageType = "Change Input Source";
|
||||
WindowManager = {
|
||||
EnableTilingByEdgeDrag = true;
|
||||
EnableTopTilingByEdgeDrag = true;
|
||||
EnableTilingOptionAccelerator = true;
|
||||
EnableTiledWindowMargins = true;
|
||||
};
|
||||
# universalaccess = {
|
||||
# mouseDriverCursorSize = 1.5;
|
||||
# reduceMotion = true;
|
||||
# reduceTransparency = false;
|
||||
# };
|
||||
menuExtraClock = {
|
||||
ShowSeconds = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue