Files
luochen570 a2bd672cf7 refactor: move sudo to core, lxc SSH to profile, clean up old lxc config
- sudo (wheelNeedsPassword) → modules/core/core.nix (全局)
- LXC SSH override (PermitRootLogin, PasswordAuth) → profiles/lxc.nix
- modules/server/ssh.nix: use mkDefault so profiles can override
- Delete modules/optional/lxc.nix
- Clean up hosts/nixos-lxc/configuration.nix: remove redundant SSH/sudo/users
  (now handled by core + server + profile chain)
- Update modules/optional/README.md
2026-05-27 06:47:50 +08:00
..
2026-03-01 19:38:51 +08:00
2026-03-01 19:38:51 +08:00
2026-03-01 19:38:51 +08:00

🖥️ hosts 目录说明

主机入口层。每台主机目录固定为三文件结构:

  • default.nix:统一入口,导入 configuration.nix
  • configuration.nix主机配置profile + hostName + 机器项)
  • README.md:目录说明

🌲 目录树

🖥️ hosts
├─ 🧑‍💻 desktop/
│  ├─ 🧩 default.nix
│  ├─ ⚙️ configuration.nix
│  └─ 📝 README.md
├─ 🗄️ server/
│  ├─ 🧩 default.nix
│  ├─ ⚙️ configuration.nix
│  └─ 📝 README.md
└─ 📦 virtualbox/
   ├─ 🧩 default.nix
   ├─ ⚙️ configuration.nix
   ├─ 🧱 hardware-configuration.nix
   └─ 📝 README.md

rn