Skip to content

Commit 98b0790

Browse files
committed
Reset from 11afc51
1 parent dfefa53 commit 98b0790

39 files changed

Lines changed: 1051 additions & 69 deletions

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
result
22
result/
3+
secrets/
4+
!secrets/README.md
5+
!secrets/darwin.nix
6+
!secrets/nixos.nix
37
.DS_Store

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
############################################################################
1212

1313
i3:
14-
nixos-rebuild switch --flake .#ai_i3 --use-remote-sudo
14+
nixos-rebuild switch --flake .#y9000k2021h_i3 --use-remote-sudo
1515

1616
hypr:
17-
nixos-rebuild switch --flake .#ai_hyprland --use-remote-sudo
17+
nixos-rebuild switch --flake .#y9000k2021h_hyprland --use-remote-sudo
1818

1919
i3-debug:
20-
nixos-rebuild switch --flake .#ai_i3 --use-remote-sudo --show-trace --verbose
20+
nixos-rebuild switch --flake .#y9000k2021h_i3 --use-remote-sudo --show-trace --verbose
2121

2222
hypr-debug:
23-
nixos-rebuild switch --flake .#ai_hyprland --use-remote-sudo --show-trace --verbose
23+
nixos-rebuild switch --flake .#y9000k2021h_hyprland --use-remote-sudo --show-trace --verbose
2424

2525
up:
2626
nix flake update

flake.lock

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

flake.nix

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# The `@` syntax here is used to alias the attribute set of the inputs's parameter, making it convenient to use inside the function.
1616
outputs = inputs @ {
1717
self,
18+
nur,
1819
nixpkgs,
1920
nixpkgs-unstable,
2021
nix-darwin,
@@ -24,9 +25,9 @@
2425
nixos-rk3588,
2526
...
2627
}: let
27-
username = "ryan";
28-
userfullname = "Ryan Yin";
29-
useremail = "xiaoyin_c@qq.com";
28+
username = "nixos";
29+
userfullname = "DataEraserC";
30+
useremail = "102341238+DataEraserC@users.noreply.github.com";
3031

3132
x64_system = "x86_64-linux";
3233
x64_darwin = "x86_64-darwin";
@@ -38,6 +39,24 @@
3839
macosSystem = import ./lib/macosSystem.nix;
3940
colmenaSystem = import ./lib/colmenaSystem.nix;
4041

42+
# y9000k2021h
43+
idol_y9000k2021h_modules_i3 = {
44+
nixos-modules = [
45+
./hosts/idols/y9000k2021h
46+
./modules/nixos/i3.nix
47+
inputs.nur.nixosModules.nur
48+
];
49+
home-module = import ./home/linux/desktop-i3.nix;
50+
};
51+
idol_y9000k2021h_modules_hyprland = {
52+
nixos-modules = [
53+
./hosts/idols/y9000k2021h
54+
./modules/nixos/hyprland.nix
55+
inputs.nur.nixosModules.nur
56+
];
57+
home-module = import ./home/linux/desktop-hyprland.nix;
58+
};
59+
4160
# 星野 アイ, Hoshino Ai
4261
idol_ai_modules_i3 = {
4362
nixos-modules = [
@@ -127,7 +146,14 @@
127146
system = x64_system;
128147
specialArgs = x64_specialArgs;
129148
};
149+
stable_args = base_args // {inherit nixpkgs nur;};
150+
unstable_args = base_args // {nixpkgs = nixpkgs-unstable;inherit nur;};
130151
in {
152+
# y9000k2021h with i3 window manager
153+
y9000k2021h_i3 = nixosSystem (idol_y9000k2021h_modules_i3 // stable_args);
154+
# y9000k2021h with hyprland compositor
155+
y9000k2021h_hyprland = nixosSystem (idol_y9000k2021h_modules_hyprland // stable_args);
156+
131157
# ai with i3 window manager
132158
ai_i3 = nixosSystem (idol_ai_modules_i3 // base_args);
133159
# ai with hyprland compositor
@@ -218,6 +244,8 @@
218244
packages."${x64_system}" =
219245
# genAttrs returns an attribute set with the given keys and values(host => image).
220246
nixpkgs.lib.genAttrs [
247+
"y9000k2021h_i3"
248+
"y9000k2021h_hyprland"
221249
"ai_i3"
222250
"ai_hyprland"
223251
] (
@@ -280,6 +308,9 @@
280308
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
281309
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
282310

311+
# NUR package source
312+
nur.url = "github:nix-community/NUR";
313+
283314
# for macos
284315
nixpkgs-darwin.url = "github:nixos/nixpkgs/nixpkgs-23.05-darwin";
285316
nix-darwin = {
@@ -334,13 +365,14 @@
334365
# my private secrets, it's a private repository, you need to replace it with your own.
335366
# use ssh protocol to authenticate via ssh-agent/ssh-key, and shallow clone to save time
336367
mysecrets = {
337-
url = "git+ssh://git@github.com/ryan4yin/nix-secrets.git?shallow=1";
368+
url = "git+ssh://git@github.com/DataEraserC/nix-secrets.git?shallow=1";
338369
flake = false;
339370
};
340371

341372
# my wallpapers
342373
wallpapers = {
343-
url = "github:ryan4yin/wallpapers";
374+
url = "github:Program-Learning/wallpapers";
375+
# url = "git+file:////home/nixos/Documents/code/wallpapers?shallow=1";
344376
flake = false;
345377
};
346378

@@ -349,6 +381,11 @@
349381
# inputs.nixpkgs.follows = "nixpkgs";
350382
};
351383

384+
nur-program-learning = {
385+
url = "github:Program-Learning/nur-packages";
386+
# inputs.nixpkgs.follows = "nixpkgs";
387+
};
388+
352389
# riscv64 SBCs
353390
nixos-licheepi4a.url = "github:ryan4yin/nixos-licheepi4a";
354391
# nixos-jh7110.url = "github:ryan4yin/nixos-jh7110";
@@ -408,6 +445,7 @@
408445
substituters = [
409446
# my own cache server
410447
"https://ryan4yin.cachix.org"
448+
"https://program-learning.cachix.org"
411449
# replace official cache with a mirror located in China
412450
"https://mirrors.ustc.edu.cn/nix-channels/store"
413451
"https://cache.nixos.org"
@@ -423,6 +461,7 @@
423461
extra-trusted-public-keys = [
424462
"ryan4yin.cachix.org-1:Gbk27ZU5AYpGS9i3ssoLlwdvMIh0NxG0w8it/cv9kbU="
425463
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
464+
"program-learning.cachix.org-1:Pfl2r+J5L9wJqpDnop6iQbrR3/Ts4AUyotu89INRlSU="
426465
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
427466
"nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
428467
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="

home/base/desktop/development.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
# python
2727
(python311.withPackages (ps:
2828
with ps; [
29+
ipykernel jupyterlab
30+
matplotlib numpy seaborn
31+
networkx
32+
beautifulsoup4
33+
selenium
34+
urllib3
35+
2936
ipython
3037
pandas
3138
requests
@@ -47,6 +54,7 @@
4754
bfg-repo-cleaner # remove large files from git history
4855
k6 # load testing tool
4956
mitmproxy # http/https proxy tool
57+
tcpdump
5058
protobuf # protocol buffer compiler
5159
];
5260

home/base/desktop/neovim/astronvim_user/init.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ return {
2626
{ import = "astrocommunity.scrolling.nvim-scrollbar" },
2727
{ import = "astrocommunity.editing-support.auto-save-nvim" },
2828
{ import = "astrocommunity.editing-support.todo-comments-nvim" },
29+
{ import = "astrocommunity.editing-support.suda-vim" },
2930
-- Language Support
3031
---- Frontend & NodeJS
3132
{ import = "astrocommunity.pack.typescript-all-in-one" },
@@ -73,6 +74,14 @@ return {
7374
end,
7475
},
7576

77+
{
78+
"skyfireitdiy/codegeex-vim"
79+
},
80+
81+
{
82+
"neoclide/coc.nvim"
83+
},
84+
7685
-- markdown preview
7786
{
7887
'0x00-ketsu/markdown-preview.nvim',

0 commit comments

Comments
 (0)