mirror of
https://codeberg.org/privacy1st/nix-git
synced 2025-04-02 16:55:59 +02:00
17 lines
458 B
Nix
17 lines
458 B
Nix
{ config, lib, pkgs, ... }:
|
|
let
|
|
defaultUsername = "yoda";
|
|
in
|
|
{
|
|
options.yoda.user = lib.mkOption {
|
|
# You can find the exhaustive list of types here: https://nlewo.github.io/nixos-manual-sphinx/development/option-types.xml.html
|
|
type = lib.types.str;
|
|
default = defaultUsername;
|
|
description = "Username of the primary Linux user account. Must not include regex special characters.";
|
|
};
|
|
|
|
config = {
|
|
yoda.user = defaultUsername;
|
|
};
|
|
}
|