My Nix configuration. Enter at your own risk.
1{lib, ...}: {
2 options.modules.home.global = {
3 editor = lib.mkOption {
4 type = with lib.types; str;
5 default = "vi";
6 };
7
8 shell = lib.mkOption {
9 type = with lib.types; str;
10 default = "bash";
11 };
12
13 shellAliases = lib.mkOption {
14 type = with lib.types; attrsOf str;
15 default = {};
16 };
17
18 hostName = lib.mkOption {
19 type = with lib.types; nullOr str;
20 default = null;
21 description = "Hostname for host-scoped config (e.g., Niri host fragments).";
22 };
23 };
24}