nixos/src/user/configs/default.nix
2024-05-12 12:31:25 -04:00

46 lines
853 B
Nix

{ lib, pkgs, config, ... }:
with lib;
let
gpg = config.modules.user.security.gpg;
userConfigs = rec {
name = "bryan";
email = "bryan@ramos.codes";
shell = pkgs.bash;
# Image name from ~Pictures/wallpapers directory
wallpaper = "mountains.jpg";
groups = [ "wheel" "networkmanager" "home-manager" "input" ];
gitConfig = {
userName = "Bryan Ramos";
userEmail = email;
signing = optionalAttrs gpg.enable {
key = "F1F3466458452B2DF351F1E864D12BA95ACE1F2D";
signByDefault = true;
};
};
pgpKey = {
text = import ./keys/pgpKey.nix;
trust = 5;
};
sshKeys = {
key1 = import ./keys/sshKey1.nix;
key2 = import ./keys/sshKey2.nix;
};
};
in
{
options = {
user = mkOption {
type = types.attrs;
default = userConfigs;
description = "User Configurations";
};
};
}