split direnv, git, and gpg into modules
also removed clipmenu also removed programs.feh, the extra options aren't needed
This commit is contained in:
parent
d272ea161b
commit
bffc08df3a
4 changed files with 36 additions and 37 deletions
9
modules/user/direnv.nix
Normal file
9
modules/user/direnv.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ config, ...}: {
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv = {
|
||||
enable = true;
|
||||
enableFlakes = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
14
modules/user/git.nix
Normal file
14
modules/user/git.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ config, ... }: {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "LavaDesu";
|
||||
userEmail = "me@lava.moe";
|
||||
signing = {
|
||||
key = "059F098EBF0E9A13E10A46BF6500251E087653C9";
|
||||
signByDefault = true;
|
||||
};
|
||||
extraConfig = {
|
||||
core.abbrev = 11;
|
||||
};
|
||||
};
|
||||
}
|
||||
10
modules/user/gpg.nix
Normal file
10
modules/user/gpg.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ config, enableGUI, ... }: {
|
||||
programs.gpg = {
|
||||
enable = true;
|
||||
homedir = "${config.xdg.dataHome}/gnupg";
|
||||
};
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
pinentryFlavor = if enableGUI then "gnome3" else "tty";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue