initial commit

This commit is contained in:
2024-03-14 21:45:05 +00:00
commit a6786f8eb1
14 changed files with 1161 additions and 0 deletions
+27
View File
@@ -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;
};
};
}