Refactor config to merge modules from platforms
This commit is contained in:
parent
a3eecd7007
commit
0c4ce3e936
32 changed files with 95 additions and 116 deletions
38
home-manager/default.nix
Normal file
38
home-manager/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ config, pkgs, username, fullname, ... }:
|
||||
{
|
||||
home.username = username;
|
||||
home.homeDirectory = "/home/" + username;
|
||||
|
||||
home.stateVersion = "21.11";
|
||||
|
||||
imports = [ ./shell ./wayland ];
|
||||
|
||||
xdg.enable = true;
|
||||
xdg.userDirs.enable = true;
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = fullname;
|
||||
userEmail = "kiana.a.sheibani@gmail.com";
|
||||
|
||||
extraConfig = {
|
||||
credential.helper = "store";
|
||||
git.allowForcePush = true;
|
||||
init.defaultBranch = "main";
|
||||
|
||||
user.signingkey = "6CB106C25E86A9F7";
|
||||
commit.gpgsign = true;
|
||||
};
|
||||
};
|
||||
|
||||
programs.gpg.enable = true;
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
enableSshSupport = true;
|
||||
pinentryFlavor = "curses";
|
||||
extraConfig = ''
|
||||
allow-emacs-pinentry
|
||||
allow-loopback-pinentry
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue