Refactor modules

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-06-13 19:53:43 +03:00
parent 4b5c7e5c68
commit 77deff930e
34 changed files with 326 additions and 313 deletions

32
users/common/extra.nix Normal file
View File

@@ -0,0 +1,32 @@
{ lib, ... }:
let
userOptions = with lib; { config, ... }: {
options.email = mkOption {
type = types.nullOr types.str;
description = "Email address of the user.";
};
options.fullName = mkOption {
type = types.nullOr types.str;
description = "Full name of the user.";
};
options.wallpaper = mkOption {
type = types.path;
description = "Path to the user's wallpaper.";
};
options.base16Scheme = mkOption {
type = types.path;
description = "Base16 scheme to use for the user's color palette.";
};
};
in
{
options = with lib; with types; {
users.users = mkOption {
type = attrsOf (submodule userOptions);
};
};
}