mirror of
https://github.com/smg1024/nix-darwin.git
synced 2026-05-22 20:32:59 +09:00
60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib) mkDefault mkOption;
|
|
types = lib.types;
|
|
in {
|
|
options.repo = {
|
|
user = {
|
|
name = mkOption {
|
|
type = types.str;
|
|
};
|
|
email = mkOption {
|
|
type = types.str;
|
|
};
|
|
homeDirectory = mkOption {
|
|
type = types.str;
|
|
};
|
|
homeStateVersion = mkOption {
|
|
type = types.str;
|
|
};
|
|
darwinStateVersion = mkOption {
|
|
type = types.int;
|
|
};
|
|
secretFile = mkOption {
|
|
type = types.path;
|
|
};
|
|
};
|
|
|
|
hosts = mkOption {
|
|
type = types.attrsOf (types.submodule {
|
|
options = {
|
|
system = mkOption {
|
|
type = types.str;
|
|
};
|
|
features = mkOption {
|
|
type = types.listOf types.str;
|
|
default = [];
|
|
};
|
|
};
|
|
});
|
|
default = {};
|
|
};
|
|
|
|
homeModules = mkOption {
|
|
type = types.lazyAttrsOf types.deferredModule;
|
|
default = {};
|
|
};
|
|
};
|
|
|
|
config.repo.user = {
|
|
name = mkDefault "poby";
|
|
email = mkDefault "smg981024@gmail.com";
|
|
homeDirectory = mkDefault "/Users/${config.repo.user.name}";
|
|
homeStateVersion = mkDefault "25.11";
|
|
darwinStateVersion = mkDefault 6;
|
|
secretFile = mkDefault ../../secrets/poby.yaml;
|
|
};
|
|
}
|