Skip to content

Commit

Permalink
docs/src/real-configurations: init
Browse files Browse the repository at this point in the history
  • Loading branch information
yunfachi committed Sep 29, 2024
1 parent fd3c343 commit 5ebda3d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ function themeConfigEnglish() {return {
{ text: "Examples", link: "/hosts/examples" }
],
},
{ text: "Real Configurations", link: "/real-configurations" },
],
}
}}
Expand Down Expand Up @@ -108,6 +109,7 @@ function themeConfigRussian() {return {
{ text: "Примеры", link: "/ru/hosts/examples" }
],
},
{ text: "Реальные конфигурации", link: "/real-configurations" },
],
}
}}
13 changes: 13 additions & 0 deletions docs/src/real-configurations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Real Configurations {#real-configurations}
This section presents a list of NixOS and Home Manager configurations that use Denix and can serve as examples of good practice*. You can add your configuration to this list via a [pull request](https://github.com/yunfachi/denix/pulls) or an [issue](https://github.com/yunfachi/denix/issues).

## Yunfachi - [nix-config](https://github.com/yunfachi/nix-config) {#yunfachi}
[![](https://github.com/user-attachments/assets/fc5ab8bf-613e-496a-aec9-8418b5d06173)](https://github.com/user-attachments/assets/fc5ab8bf-613e-496a-aec9-8418b5d06173)

**Features:**

- Extracting relevant options from modules into host options
- [Module](https://github.com/yunfachi/nix-config/blob/master/modules/config/args.nix) for specifying `_module.args`
- [Modules](https://github.com/yunfachi/nix-config/tree/master/modules/infras) for different infrastructures
- Shared and host-specific secrets using [SOPS](https://github.com/getsops/sops)
- Color scheme-based rices inheriting general configuration settings
13 changes: 13 additions & 0 deletions docs/src/ru/real-configurations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Реальные конфигурации {#real-configurations}
В этом разделе представлен список конфигураций NixOS и Home Manager, которые используют Denix и могут служить примерами хорошей практики*. Вы можете добавить свою конфигурацию в этот список через [pull request](https://github.com/yunfachi/denix/pulls) или [issue](https://github.com/yunfachi/denix/issues).

## Yunfachi - [nix-config](https://github.com/yunfachi/nix-config) {#yunfachi}
[![](https://github.com/user-attachments/assets/fc5ab8bf-613e-496a-aec9-8418b5d06173)](https://github.com/user-attachments/assets/fc5ab8bf-613e-496a-aec9-8418b5d06173)

**Особенности:**

- Вынос подходящих опций из модулей в опции хоста
- [Модуль](https://github.com/yunfachi/nix-config/blob/master/modules/config/args.nix) для указания `_module.args`
- [Модули](https://github.com/yunfachi/nix-config/tree/master/modules/infras) для различных инфраструктур
- Общие и уникальные для каждого хоста секреты с использованием [SOPS](https://github.com/getsops/sops)
- Райсы под цветовые схемы, наследующие общие конфигурации

0 comments on commit 5ebda3d

Please sign in to comment.