|
15 | 15 | # The `@` syntax here is used to alias the attribute set of the inputs's parameter, making it convenient to use inside the function. |
16 | 16 | outputs = inputs @ { |
17 | 17 | self, |
| 18 | + nur, |
18 | 19 | nixpkgs, |
19 | 20 | nixpkgs-unstable, |
20 | 21 | nix-darwin, |
|
24 | 25 | nixos-rk3588, |
25 | 26 | ... |
26 | 27 | }: 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"; |
30 | 31 |
|
31 | 32 | x64_system = "x86_64-linux"; |
32 | 33 | x64_darwin = "x86_64-darwin"; |
|
38 | 39 | macosSystem = import ./lib/macosSystem.nix; |
39 | 40 | colemnaSystem = import ./lib/colmenaSystem.nix; |
40 | 41 |
|
| 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 | + |
41 | 60 | # 星野 アイ, Hoshino Ai |
42 | 61 | idol_ai_modules_i3 = { |
43 | 62 | nixos-modules = [ |
|
127 | 146 | system = x64_system; |
128 | 147 | specialArgs = x64_specialArgs; |
129 | 148 | }; |
| 149 | + stable_args = base_args // {inherit nixpkgs nur;}; |
| 150 | + unstable_args = base_args // {nixpkgs = nixpkgs-unstable;inherit nur;}; |
130 | 151 | 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 | + |
131 | 157 | # ai with i3 window manager |
132 | 158 | ai_i3 = nixosSystem (idol_ai_modules_i3 // base_args); |
133 | 159 | # ai with hyprland compositor |
|
218 | 244 | packages."${x64_system}" = |
219 | 245 | # genAttrs returns an attribute set with the given keys and values(host => image). |
220 | 246 | nixpkgs.lib.genAttrs [ |
| 247 | + "y9000k2021h_i3" |
| 248 | + "y9000k2021h_hyprland" |
221 | 249 | "ai_i3" |
222 | 250 | "ai_hyprland" |
223 | 251 | ] ( |
|
280 | 308 | nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05"; |
281 | 309 | nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; |
282 | 310 |
|
| 311 | + # NUR package source |
| 312 | + nur.url = "github:nix-community/NUR"; |
| 313 | + |
283 | 314 | # for macos |
284 | 315 | nixpkgs-darwin.url = "github:nixos/nixpkgs/nixpkgs-23.05-darwin"; |
285 | 316 | nix-darwin = { |
|
334 | 365 | # my private secrets, it's a private repository, you need to replace it with your own. |
335 | 366 | # use ssh protocol to authenticate via ssh-agent/ssh-key, and shallow clone to save time |
336 | 367 | 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"; |
338 | 369 | flake = false; |
339 | 370 | }; |
340 | 371 |
|
341 | 372 | # my wallpapers |
342 | 373 | wallpapers = { |
343 | | - url = "github:ryan4yin/wallpapers"; |
| 374 | + url = "github:Program-Learning/wallpapers"; |
| 375 | + # url = "git+file:////home/nixos/Documents/code/wallpapers?shallow=1"; |
344 | 376 | flake = false; |
345 | 377 | }; |
346 | 378 |
|
|
0 commit comments