changed imports to mkModules

This commit is contained in:
Bryan Ramos 2024-11-07 15:41:50 -05:00
parent 649d9e83b6
commit 5c3d410aa0
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
34 changed files with 67 additions and 448 deletions

View file

@ -0,0 +1,33 @@
{ lib, pkgs, config, ... }:
with lib;
let
modules = config.modules.user;
in
{
options = {
user = mkOption {
description = "User Configurations";
type = types.attrs;
default = rec {
name = "bryan";
email = "bryan@ramos.codes";
shell = pkgs.bash;
keys = import ./keys;
groups = [ "wheel" "networkmanager" "home-manager" "input" ];
gitConfig = optionalAttrs modules.git.enable {
userName = "Bryan Ramos";
userEmail = email;
signing = optionalAttrs modules.security.gpg.enable {
key = "F1F3466458452B2DF351F1E864D12BA95ACE1F2D";
signByDefault = true;
};
};
bookmarks = import ./bookmarks;
};
};
};
}