mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
removed let variable for readability
This commit is contained in:
parent
edaffee627
commit
6d9d2fe824
1 changed files with 19 additions and 21 deletions
|
|
@ -4,33 +4,31 @@ with lib;
|
||||||
let
|
let
|
||||||
modules = config.modules.user;
|
modules = config.modules.user;
|
||||||
|
|
||||||
userConfigs = rec {
|
|
||||||
name = "bryan";
|
|
||||||
email = "bryan@ramos.codes";
|
|
||||||
shell = pkgs.bash;
|
|
||||||
|
|
||||||
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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
keys = import ./keys;
|
|
||||||
bookmarks = import ./bookmarks;
|
|
||||||
};
|
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
user = mkOption {
|
user = mkOption {
|
||||||
description = "User Configurations";
|
description = "User Configurations";
|
||||||
type = types.attrs;
|
type = types.attrs;
|
||||||
default = userConfigs;
|
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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue