tweak: user-parts options
This commit is contained in:
parent
2fb777a82c
commit
4e5c848501
3 changed files with 45 additions and 22 deletions
|
|
@ -25,43 +25,62 @@
|
|||
|
||||
{
|
||||
options.nixos.user-parts = {
|
||||
|
||||
user = lib.mkOption {
|
||||
type = lib.types.submodule {
|
||||
options = {
|
||||
|
||||
username = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "user";
|
||||
};
|
||||
|
||||
avatar = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "avatar.png";
|
||||
};
|
||||
|
||||
home-directory = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
};
|
||||
|
||||
default-locale = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "en_US.UTF-8";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
default = { };
|
||||
};
|
||||
|
||||
shell = lib.mkOption {
|
||||
type = lib.types.submodule {
|
||||
options = {
|
||||
user-shell = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "pkgs.fish";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
git = lib.mkOption {
|
||||
type = lib.types.submodule {
|
||||
options = {
|
||||
username = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "DontBlameMe";
|
||||
default = "serenity-F";
|
||||
};
|
||||
email = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "dontblameme@noreply.codeberg.org";
|
||||
default = "serenity-F@noreply.codeberg.org";
|
||||
};
|
||||
};
|
||||
};
|
||||
default = { };
|
||||
};
|
||||
|
||||
home-directory = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
};
|
||||
|
||||
default-locale = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "en_US.UTF-8";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
config = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue