Skip to content

Commit 5da6313

Browse files
committed
Reset from 838c34a
1 parent bfd0525 commit 5da6313

30 files changed

+848
-61
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
result
22
result/
3+
secrets/
34
.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: 29 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 37 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
colemnaSystem = 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

home/base/desktop/development.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
bfg-repo-cleaner # remove large files from git history
4545
k6 # load testing tool
4646
mitmproxy # http/https proxy tool
47+
tcpdump
4748
protobuf # protocol buffer compiler
4849
];
4950

home/linux/desktop/creative.nix

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,34 @@
1414

1515
programs = {
1616
# live streaming
17-
obs-studio.enable = true;
17+
obs-studio = {
18+
enable = true;
19+
plugins = with pkgs; [
20+
# screen capture
21+
obs-studio-plugins.wlrobs
22+
# obs-studio-plugins.obs-ndi
23+
obs-studio-plugins.obs-vaapi
24+
obs-studio-plugins.obs-nvfbc
25+
obs-studio-plugins.obs-teleport
26+
# obs-studio-plugins.obs-hyperion
27+
obs-studio-plugins.droidcam-obs
28+
obs-studio-plugins.obs-vkcapture
29+
obs-studio-plugins.obs-gstreamer
30+
obs-studio-plugins.obs-3d-effect
31+
obs-studio-plugins.input-overlay
32+
obs-studio-plugins.obs-multi-rtmp
33+
obs-studio-plugins.obs-source-clone
34+
obs-studio-plugins.obs-shaderfilter
35+
obs-studio-plugins.obs-source-record
36+
obs-studio-plugins.obs-livesplit-one
37+
obs-studio-plugins.looking-glass-obs
38+
obs-studio-plugins.obs-vintage-filter
39+
obs-studio-plugins.obs-command-source
40+
obs-studio-plugins.obs-move-transition
41+
obs-studio-plugins.obs-backgroundremoval
42+
obs-studio-plugins.advanced-scene-switcher
43+
obs-studio-plugins.obs-pipewire-audio-capture
44+
];
45+
};
1846
};
1947
}

0 commit comments

Comments
 (0)