mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-28 00:05:00 +08:00
35 lines
656 B
Nix
35 lines
656 B
Nix
# Top-level configuration for everything in this repo.
|
|
#
|
|
# Values are set in 'config.nix' in repo root.
|
|
{ lib, ... }:
|
|
let
|
|
userSubmodule = lib.types.submodule {
|
|
options = {
|
|
username = lib.mkOption {
|
|
type = lib.types.str;
|
|
};
|
|
fullname = lib.mkOption {
|
|
type = lib.types.str;
|
|
};
|
|
email = lib.mkOption {
|
|
type = lib.types.str;
|
|
};
|
|
sshKey = lib.mkOption {
|
|
type = lib.types.str;
|
|
description = ''
|
|
SSH public key
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
in
|
|
{
|
|
imports = [
|
|
../../config.nix
|
|
];
|
|
options = {
|
|
me = lib.mkOption {
|
|
type = userSubmodule;
|
|
};
|
|
};
|
|
}
|