mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-05 23:18:11 +09:00
quem agent
This commit is contained in:
@@ -99,6 +99,8 @@ application や system より抽象度の高い「機能」単位で、複数の
|
||||
### `profiles/` — ホスト構成
|
||||
|
||||
features の `enable` を指定するだけの薄い層。ロジックは書かない。
|
||||
`profiles/` から `my.system.*.enable` / `my.applications.*.enable` を直接指定しない。
|
||||
必要な場合は必ず `modules/features/` に feature 層を作り、profile では `my.features.*.enable` のみ指定する。
|
||||
|
||||
| カテゴリ | 役割 | 例 |
|
||||
| ------------- | -------------------- | ------------------------------------------ |
|
||||
|
||||
@@ -2,5 +2,6 @@
|
||||
imports = [
|
||||
./container.nix
|
||||
./kde.nix
|
||||
./quem-guest.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
cfg = config.my.features.services.quemGuest;
|
||||
in
|
||||
{
|
||||
options.my.features.services.quemGuest = {
|
||||
enable = lib.mkEnableOption "QEMU guest support";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
my.system.quem.enable = true;
|
||||
};
|
||||
}
|
||||
@@ -1,8 +1,7 @@
|
||||
{
|
||||
my.system.quem.enable = true;
|
||||
|
||||
my.features = {
|
||||
boot.uefi.enable = true;
|
||||
services.quemGuest.enable = true;
|
||||
storage.nfsClient.enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user