add desktop platform

This commit is contained in:
Fabian Montero 2024-09-08 15:23:22 -06:00
parent a598918c63
commit 106bc1348d
Signed by untrusted user: fabian
GPG key ID: 1FFAC35E1798174F
26 changed files with 2602 additions and 13 deletions

57
home/default.nix Normal file
View file

@ -0,0 +1,57 @@
#TODO: keys will not be shared in all platforms
{
flakes,
config,
pkgs,
lib,
...
}:
with lib; {
xdg.enable = true;
programs = {
zsh = {
enable = true;
syntaxHighlighting.enable = true;
initExtra = import ./zshrc.nix pkgs;
};
git = {
enable = true;
userEmail = "fabian@posixlycorrect.com";
userName = "Fabian Montero";
signing = {
key = "7AA277E604A4173916BBB4E91FFAC35E1798174F";
signByDefault = true;
};
};
gpg = {
enable = true;
settings = {
default-key = "7AA277E604A4173916BBB4E91FFAC35E1798174F";
};
};
};
services.gpg-agent = {
enable = true;
enableZshIntegration = true;
pinentryPackage = pkgs.pinentry-emacs;
};
accounts.email.accounts = {
"fabian@posixlycorrect.com" = {
address = "fabian@posixlycorrect.com";
userName = "fabianmontero@fastmail.com";
realName = "fabian";
primary = true;
flavor = "fastmail.com";
gpg = {
encryptByDefault = true;
signByDefault = true;
key = "7AA277E604A4173916BBB4E91FFAC35E1798174F";
};
};
};
}