Skip to content

Commit 87dfca9

Browse files
committed
Merge branch 'main' of ssh://github.com/ryan4yin/nix-config
2 parents c371047 + 91e4ab8 commit 87dfca9

22 files changed

Lines changed: 651 additions & 746 deletions

File tree

flake.lock

Lines changed: 438 additions & 441 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
# nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
7171

7272
# nixpkgs with some custom patches
73-
nixpkgs-patched.url = "github:ryan4yin/nixpkgs/nixos-unstable-patched";
73+
nixpkgs-patched.url = "github:ryan4yin/nixpkgs/nixos-unstable";
7474
# get some latest packages from the master branch
7575
nixpkgs-master.url = "github:nixos/nixpkgs/master";
7676

@@ -163,7 +163,7 @@
163163
};
164164

165165
nixos-apple-silicon = {
166-
# asahi-6.17.7-2
166+
# asahi-6.18.9
167167
url = "github:nix-community/nixos-apple-silicon";
168168
inputs.nixpkgs.follows = "nixpkgs";
169169
};

hardening/bwraps/wechat.nix

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,15 @@ let
1818
aarch64-linux = {
1919
version = "4.1.0.13";
2020
src = fetchurl {
21-
# url = "https://web.archive.org/web/20251209092116if_/https://dldir1v6.qq.com/weixin/Universal/Linux/WeChatLinux_arm64.AppImage";
2221
url = "https://dldir1v6.qq.com/weixin/Universal/Linux/WeChatLinux_arm64.AppImage";
23-
hash = "sha256-/d5crM6IGd0k0fSlBSQx4TpIVX/8iib+an0VMkWMNdw=";
22+
hash = "sha256-o6a7773agYqrP4dXsjzSUT2Du77gZ4wN1F2e0uvEzVc=";
2423
};
2524
};
2625
x86_64-linux = {
2726
version = "4.1.0.13";
2827
src = fetchurl {
29-
# url = "https://web.archive.org/web/20251219062558if_/https://dldir1v6.qq.com/weixin/Universal/Linux/WeChatLinux_x86_64.AppImage";
3028
url = "https://dldir1v6.qq.com/weixin/Universal/Linux/WeChatLinux_x86_64.AppImage";
31-
hash = "sha256-+r5Ebu40GVGG2m2lmCFQ/JkiDsN/u7XEtnLrB98602w=";
29+
hash = "sha256-Pfl81lNVlMJWyPqFli1Af2q8pRLujcKCjYoILCKDx8U=";
3230
};
3331
};
3432
};

hardening/nixpaks/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ in
2222
nixpkgs.overlays = [
2323
(_: super: {
2424
nixpaks = {
25-
qq = wrapper pkgs-master ./qq.nix;
25+
qq = wrapper super ./qq.nix;
2626
telegram-desktop = wrapper super ./telegram-desktop.nix;
2727
firefox = wrapper super ./firefox.nix;
2828
};

home/base/core/yazi.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# Changing working directory when exiting Yazi
88
enableBashIntegration = true;
99
enableNushellIntegration = true;
10+
shellWrapperName = "yy";
1011
enableFishIntegration = true;
1112
settings = {
1213
mgr = {

home/base/tui/container.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
kubevirt # virtctl
2929
pkgs-2505.kubernetes-helm
3030
fluxcd
31-
argocd
31+
# argocd
3232

3333
ko # build go project to container image
3434
];

home/base/tui/editors/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,12 @@ Misc:
133133
Advance Techs:
134134

135135
- Add at the end of multiple lines: `:normal A<text>`
136-
137136
- Execublock: `:A<text>`
138137
- visual block mode(ctrl + v)
139138
- Append text at the end of each line in the selected block
140139
- If position exceeds line end, neovim adds spaces automatically
141140

142141
- Delete the last char of multivle lines: `:normal $x`
143-
144142
- Execute `$x` on each line
145143
- visual mode(v)
146144
- `$` moves cursor to the end of line

home/base/tui/editors/neovim/nvim/lua/plugins/avante.lua

Lines changed: 0 additions & 157 deletions
This file was deleted.

home/base/tui/shell/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
# https://bailian.console.aliyun.com/?tab=doc#/doc/?type=model&url=2949529
3232
# $env.ANTHROPIC_BASE_URL = "https://dashscope.aliyuncs.com/apps/anthropic"
3333
# $env.ANTHROPIC_AUTH_TOKEN = $env.DASHSCOPE_API_KEY
34-
# $env.ANTHROPIC_MODEL = "qwen-plus" # 千万别用 qwen-max, 价格
34+
# $env.ANTHROPIC_MODEL = "qwen-plus" # 千万别用 qwen-max, 超级无敌贵
3535
# $env.ANTHROPIC_DEFAULT_HAIKU_MODEL = "qwen-turbo"
3636
3737
# Directories in this constant are searched by the

home/linux/gui/base/editors.nix

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -13,43 +13,12 @@ let
1313
# (for example gnome-keyring, kwallet5, KeepassXC)
1414
"--password-store=gnome-libsecret"
1515
];
16-
17-
code-cursor = pkgs-master.code-cursor;
18-
# (pkgs-master.code-cursor.override {
19-
# commandLineArgs = lib.concatStringsSep " " vscodeCliArgs;
20-
# }).overrideAttrs
21-
# (oldAttrs: rec {
22-
# pname = "cursor";
23-
# version = "2.1.36";
24-
# src =
25-
# with pkgs-master;
26-
# appimageTools.extract {
27-
# inherit pname version;
28-
# src =
29-
# let
30-
# sources = {
31-
# x86_64-linux = fetchurl {
32-
# # curl -s https://api2.cursor.sh/updates/api/download/stable/linux-x64/cursor | jq
33-
# url = "https://downloads.cursor.com/production/9cd7c8b6cebcbccc1242df211dee45a4b6fe15e4/linux/x64/Cursor-2.1.36-x86_64.AppImage";
34-
# hash = "sha256-aaprRB2BAaUCHj7m5aGacCBHisjN2pVZ+Ca3u1ifxBA=";
35-
# };
36-
# aarch64-linux = fetchurl {
37-
# # curl -s https://api2.cursor.sh/updates/api/download/stable/linux-arm64/cursor | jq
38-
# url = "https://downloads.cursor.com/production/9cd7c8b6cebcbccc1242df211dee45a4b6fe15e4/linux/arm64/Cursor-2.1.36-aarch64.AppImage";
39-
# hash = "sha256-S2vFYBI6m0zjBJEDbk7gc6/zFiKWyhM73OUm1xsNx6Q=";
40-
# };
41-
# };
42-
# in
43-
# sources.${stdenv.hostPlatform.system};
44-
# };
45-
# sourceRoot = "${pname}-${version}-extracted/usr/share/cursor";
46-
# });
4716
in
4817
{
4918
home.packages = [
50-
pkgs-stable.zed-editor
5119
pkgs-master.code-cursor
52-
pkgs-master.antigravity-fhs
20+
pkgs-master.zed-editor
21+
# pkgs-master.antigravity-fhs
5322
];
5423

5524
programs.vscode = {

0 commit comments

Comments
 (0)