mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
rebuild on darwin
This commit is contained in:
parent
6f3f19ee86
commit
85b644c512
10 changed files with 156 additions and 78 deletions
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{...}: {
|
||||
homebrew = {
|
||||
enable = true;
|
||||
brewPrefix = "/opt/homebrew/bin";
|
||||
|
|
@ -31,7 +27,6 @@
|
|||
"clash-verge-rev"
|
||||
|
||||
# Terminal Emulator
|
||||
"kitty"
|
||||
|
||||
# Fonts
|
||||
"font-maple-mono-nf-cn"
|
||||
|
|
|
|||
|
|
@ -20,5 +20,12 @@
|
|||
i18n.inputMethod.enable = false;
|
||||
|
||||
programs.ghostty.systemd.enable = false;
|
||||
programs.ghostty.package = pkgs.ghostty-bin;
|
||||
programs.ghostty.package = lib.mkForce pkgs.ghostty-bin;
|
||||
|
||||
home.file.".ssh/config".text = ''
|
||||
# ~/.ssh/config
|
||||
Host *
|
||||
UseKeychain yes
|
||||
AddKeysToAgent yes
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,14 +7,10 @@
|
|||
accents = ["pink"];
|
||||
winDecStyles = ["classic"];
|
||||
};
|
||||
my-catppuccin-gtk = pkgs.catppuccin-gtk.override {
|
||||
accents = ["pink"];
|
||||
variant = "mocha";
|
||||
};
|
||||
in {
|
||||
home.packages = with pkgs; [
|
||||
catppuccin
|
||||
my-catppuccin-gtk
|
||||
# my-catppuccin-gtk
|
||||
my-catppuccin-kde
|
||||
catppuccin-fcitx5
|
||||
];
|
||||
|
|
|
|||
|
|
@ -10,62 +10,63 @@
|
|||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
rclone
|
||||
age
|
||||
aichat
|
||||
beancount
|
||||
gnumake
|
||||
chezmoi
|
||||
cmake
|
||||
curlie
|
||||
duf
|
||||
dust
|
||||
fd
|
||||
ffmpeg
|
||||
glow
|
||||
hyperfine
|
||||
just
|
||||
lazygit
|
||||
lsd
|
||||
pandoc
|
||||
dos2unix
|
||||
nushell
|
||||
procs
|
||||
ripgrep
|
||||
ripgrep-all
|
||||
tlrc
|
||||
zoxide
|
||||
vim
|
||||
wget
|
||||
git
|
||||
fastfetch
|
||||
fzf
|
||||
kitty
|
||||
zoxide
|
||||
wakatime-cli
|
||||
sdcv
|
||||
# Langs
|
||||
# lua luajit
|
||||
lua51Packages.luarocks
|
||||
ghostscript
|
||||
# Misc ta-lib ddgr protonvpn-cli
|
||||
markdown-oxide
|
||||
powershell
|
||||
gemini-cli
|
||||
codex
|
||||
imagemagick
|
||||
miniserve
|
||||
jq
|
||||
srm
|
||||
mediainfo
|
||||
exiftool
|
||||
ddgr # DuckDuckGo CLI
|
||||
jujutsu
|
||||
github-copilot-cli
|
||||
yt-dlp
|
||||
bluetui
|
||||
asciinema
|
||||
ansi2html
|
||||
];
|
||||
home.packages = with pkgs;
|
||||
[
|
||||
rclone
|
||||
age
|
||||
aichat
|
||||
beancount
|
||||
gnumake
|
||||
chezmoi
|
||||
cmake
|
||||
curlie
|
||||
duf
|
||||
dust
|
||||
fd
|
||||
ffmpeg
|
||||
glow
|
||||
hyperfine
|
||||
just
|
||||
lazygit
|
||||
lsd
|
||||
pandoc
|
||||
dos2unix
|
||||
nushell
|
||||
procs
|
||||
ripgrep
|
||||
ripgrep-all
|
||||
tlrc
|
||||
zoxide
|
||||
vim
|
||||
wget
|
||||
git
|
||||
fastfetch
|
||||
fzf
|
||||
kitty
|
||||
zoxide
|
||||
wakatime-cli
|
||||
sdcv
|
||||
# Misc ta-lib ddgr protonvpn-cli
|
||||
markdown-oxide
|
||||
powershell
|
||||
gemini-cli
|
||||
codex
|
||||
imagemagick
|
||||
miniserve
|
||||
jq
|
||||
srm
|
||||
mediainfo
|
||||
exiftool
|
||||
ddgr # DuckDuckGo CLI
|
||||
jujutsu
|
||||
github-copilot-cli
|
||||
yt-dlp
|
||||
asciinema
|
||||
ansi2html
|
||||
]
|
||||
++ (
|
||||
if pkgs.stdenv.isDarwin
|
||||
then with pkgs; [duti]
|
||||
else with pkgs; [bluetui]
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,9 +14,9 @@
|
|||
plugins = {
|
||||
alwaysAnimate.enable = true;
|
||||
alwaysTrust.enable = true;
|
||||
clearURLs.enable = true;
|
||||
clearUrLs.enable = true;
|
||||
copyFileContents.enable = true;
|
||||
copyUserURLs.enable = true;
|
||||
copyUserUrLs.enable = true;
|
||||
disableCallIdle.enable = true;
|
||||
favoriteEmojiFirst.enable = true;
|
||||
forceOwnerCrown.enable = true;
|
||||
|
|
|
|||
31
nixcfgs/users/js0ny/programs/duti.nix
Normal file
31
nixcfgs/users/js0ny/programs/duti.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
gvim = "com.neovide.neovide";
|
||||
iina = "com.colliderli.iina";
|
||||
# firefox = "org.nixos.firefox";
|
||||
keka = "com.aone.keka";
|
||||
|
||||
defaultApps = {
|
||||
"${gvim}" = ["md" "json" "js" "txt" "xml"];
|
||||
"${iina}" = ["mp4" "mkv"];
|
||||
# "${firefox}" = ["html"];
|
||||
"${keka}" = ["7z" "zip" "rar" "tar"];
|
||||
};
|
||||
|
||||
duti = "${pkgs.duti}/bin/duti";
|
||||
mkDutiCommands = app: extensions:
|
||||
map (ext: "${duti} -s ${app} ${ext} all") extensions;
|
||||
in {
|
||||
home.packages = [pkgs.duti];
|
||||
|
||||
home.activation.setOSXDefaultApps = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||
${
|
||||
lib.concatStringsSep "\n" (
|
||||
lib.flatten (lib.mapAttrsToList mkDutiCommands defaultApps)
|
||||
)
|
||||
}
|
||||
'';
|
||||
}
|
||||
|
|
@ -5,10 +5,6 @@
|
|||
}: {
|
||||
programs.ghostty = {
|
||||
enable = true;
|
||||
package =
|
||||
if pkgs.stdenv.isLinux
|
||||
then pkgs.ghostty
|
||||
else pkgs.ghostty-bin;
|
||||
enableBashIntegration = true;
|
||||
enableZshIntegration = true;
|
||||
enableFishIntegration = true;
|
||||
|
|
|
|||
|
|
@ -133,5 +133,54 @@ in {
|
|||
'';
|
||||
enable = true;
|
||||
};
|
||||
"${rimePath}/squirrel.custom.yaml" = {
|
||||
text = ''
|
||||
patch:
|
||||
# style/candidate_list_layout: linear
|
||||
app_options:
|
||||
md.obsidian:
|
||||
vim_mode: true
|
||||
com.neovide.neovide:
|
||||
vim_mode: true
|
||||
ascii_mode: true
|
||||
com.microsoft.VSCode:
|
||||
vim_mode: true
|
||||
ascii_mode: true
|
||||
com.jetbrains.rider:
|
||||
vim_mode: true
|
||||
ascii_mode: true
|
||||
com.jetbrains.CLion:
|
||||
vim_mode: true
|
||||
ascii_mode: true
|
||||
info.sioyek.sioyek:
|
||||
ascii_mode: true
|
||||
com.raycast.macos:
|
||||
ascii_mode: true
|
||||
net.kovidgoyal.kitty:
|
||||
ascii_mode: true
|
||||
vim_mode: true
|
||||
com.mitchellh.ghostty:
|
||||
ascii_mode: true
|
||||
vim_mode: true
|
||||
com.github.wez.wezterm:
|
||||
ascii_mode: true
|
||||
dev.zed.Zed:
|
||||
vim_mode: true
|
||||
ascii_mode: true
|
||||
|
||||
'';
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
home.activation.deployRime =
|
||||
if pkgs.stdenv.isDarwin
|
||||
then
|
||||
lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||
/Library/Input\ Methods/Squirrel.app/Contents/MacOS/Squirrel --reload
|
||||
''
|
||||
else
|
||||
lib.hm.entryAfter ["writeBoundary"] ''
|
||||
qdbus org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.SetConfig "fcitx://onfig/addon/rime/deploy" ""
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
|
||||
# Programs
|
||||
./programs/firefox
|
||||
./programs/emacs.nix
|
||||
./programs/zed-editor.nix
|
||||
./programs/rime.nix
|
||||
./programs/sdcv.nix
|
||||
|
|
@ -25,6 +26,10 @@
|
|||
./programs/edit-clipboard.nix
|
||||
./programs/neovide.nix
|
||||
./programs/ghostty.nix
|
||||
./programs/tmux.nix
|
||||
./programs/kitty.nix
|
||||
# ./programs/retroarch.nix # Package broken on macOS
|
||||
./programs/duti.nix
|
||||
|
||||
../../modules/home/do-not-track.nix
|
||||
../../modules/home/darwin.nix
|
||||
|
|
|
|||
|
|
@ -75,8 +75,6 @@
|
|||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
currentUser.defaultTerminalRunner = "alacritty";
|
||||
|
||||
currentHost = {
|
||||
keyboardBacklightDevice = "asus::kbd_backlight";
|
||||
keyboardBacklightStep = "1";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue