refactor: move optional modules to modules/optional/
- Move virtualbox-guest.nix and vscode-server.nix from modules/server/ to modules/optional/ - Create modules/optional/README.md with usage docs - Update profiles/virtualbox.nix and profiles/wsl.nix import paths - Update modules/server/README.md to reflect removal - Update root README.md directory tree with optional/ entry
This commit is contained in:
@@ -24,10 +24,14 @@ nixos/
|
||||
│ │ ├── pkg.nix # 基础系统包
|
||||
│ │ ├── users.nix # 用户与 Shell
|
||||
│ │ └── sops.nix # 密钥管理
|
||||
│ ├── server/ # 服务器模块
|
||||
│ ├── server/ # 服务器模块(默认启用)
|
||||
│ │ ├── default.nix
|
||||
│ │ ├── docker.nix
|
||||
│ │ └── ssh.nix
|
||||
│ ├── optional/ # 选装模块(按需引用)
|
||||
│ │ ├── README.md
|
||||
│ │ ├── virtualbox-guest.nix # VirtualBox Guest 增强
|
||||
│ │ └── vscode-server.nix # VS Code Server
|
||||
│ ├── desktop/ # 桌面模块
|
||||
│ │ ├── default.nix
|
||||
│ │ ├── pkg.nix # 桌面应用包
|
||||
@@ -106,3 +110,4 @@ sudo nix-collect-garbage --delete-older-than 14d
|
||||
- LXC 容器使用 Proxmox LXC 模块,关闭了 systemd 挂载报错的服务
|
||||
- `secrets/` 目录经过 sops 加密,需有对应 age key 才能解密
|
||||
- 各主机目录下有各自的 `README.md`,含该主机的硬件信息与应用列表
|
||||
- `modules/optional/` 下的模块为非默认启用,按需在 profile 中引用
|
||||
|
||||
Reference in New Issue
Block a user