mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
nix-darwin
This commit is contained in:
parent
d31cb14b88
commit
ebb2a87ca7
6 changed files with 67 additions and 52 deletions
10
nixcfgs/hosts/zen/default.nix
Normal file
10
nixcfgs/hosts/zen/default.nix
Normal 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";
|
||||
}
|
||||
5
nixcfgs/modules/darwin/default.nix
Normal file
5
nixcfgs/modules/darwin/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
time.timeZone = "Europe/London";
|
||||
}
|
||||
|
|
@ -25,7 +25,6 @@
|
|||
"neovide"
|
||||
"clash-verge-rev"
|
||||
"obsidian"
|
||||
"mullvad-vpn"
|
||||
"alacritty"
|
||||
"alt-tab"
|
||||
"apparency"
|
||||
|
|
@ -60,7 +59,7 @@
|
|||
"TickTick"
|
||||
"cherry-studio"
|
||||
"firefox"
|
||||
"Wireshark"
|
||||
"wireshark-app"
|
||||
"LibreWolf"
|
||||
"brave-browser"
|
||||
"font-maple-mono-nf-cn"
|
||||
47
nixcfgs/modules/darwin/js0ny/dock.nix
Normal file
47
nixcfgs/modules/darwin/js0ny/dock.nix
Normal 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;
|
||||
};}
|
||||
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue