initial commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
# main-user.nix
|
||||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.main-user;
|
||||
in
|
||||
{
|
||||
options.main-user = {
|
||||
enable
|
||||
= lib.mkEnableOption "enable user module";
|
||||
userName = lib.mkOption {
|
||||
default = "mainuser";
|
||||
description = ''
|
||||
username
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
users.users.${config.main-user.userName} = {
|
||||
isNormalUser = true;
|
||||
initialPasswork = "p4ss";
|
||||
description = "main user";
|
||||
shell = pkgs.bash;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user