mirror of
https://github.com/blahai/nyx.git
synced 2025-06-09 22:53:07 -04:00
too much shit idek anymore
This commit is contained in:
parent
14843ef945
commit
bc82345beb
63 changed files with 1759 additions and 346 deletions
25
modules/base/users/options.nix
Normal file
25
modules/base/users/options.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.options) mkOption;
|
||||
inherit (lib.types) enum listOf str;
|
||||
in {
|
||||
options.olympus.system = {
|
||||
mainUser = mkOption {
|
||||
type = enum config.olympus.system.users;
|
||||
description = "The username of the main user for your system";
|
||||
default = builtins.elemAt config.olympus.system.users 0;
|
||||
};
|
||||
|
||||
users = mkOption {
|
||||
type = listOf str;
|
||||
default = ["pingu"];
|
||||
description = ''
|
||||
A list of users that you wish to declare as your non-system users. The first username
|
||||
in the list will be treated as your main user unless {option}`olympus.system.mainUser` is set.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue