emacs server
This commit is contained in:
parent
8af7ea5958
commit
0378909589
4 changed files with 112 additions and 84 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{ inputs, config, lib, pkgs, ... }:
|
||||
{
|
||||
|
||||
home.stateVersion = lib.mkDefault "21.05";
|
||||
home.stateVersion = lib.mkDefault "22.05";
|
||||
home.packages = with pkgs; [
|
||||
|
||||
my.scripts
|
||||
|
|
@ -46,34 +46,34 @@
|
|||
};
|
||||
|
||||
programs = {
|
||||
gpg = {
|
||||
enable = true;
|
||||
settings = {
|
||||
cert-digest-algo = "SHA512";
|
||||
charset = "utf-8";
|
||||
default-preference-list = "SHA512 SHA384 SHA256 AES256 AES192 AES ZLIB BZIP2 ZIP Uncompressed";
|
||||
auto-key-retrieve = true;
|
||||
fixed-list-mode = true;
|
||||
keyserver = "hkps://keyserver.ubuntu.com:443";
|
||||
list-options = [ "show-uid-validity" "show-unusable-subkeys" ];
|
||||
no-comments = true;
|
||||
no-emit-version = true;
|
||||
no-greeting = true;
|
||||
no-symkey-cache = true;
|
||||
personal-cipher-preferences = "AES256 AES192 AES";
|
||||
personal-compress-preferences = "ZLIB BZIP2 ZIP Uncompressed";
|
||||
personal-digest-preferences = "SHA512 SHA384 SHA256";
|
||||
require-cross-certification = true;
|
||||
s2k-cipher-algo = "AES256";
|
||||
s2k-digest-algo = "SHA512";
|
||||
throw-keyids = true;
|
||||
use-agent = true;
|
||||
verbose = true;
|
||||
verify-options = "show-uid-validity";
|
||||
with-fingerprint = true;
|
||||
with-key-origin = true;
|
||||
};
|
||||
};
|
||||
# gpg = {
|
||||
# enable = true;
|
||||
# settings = {
|
||||
# cert-digest-algo = "SHA512";
|
||||
# charset = "utf-8";
|
||||
# default-preference-list = "SHA512 SHA384 SHA256 AES256 AES192 AES ZLIB BZIP2 ZIP Uncompressed";
|
||||
# auto-key-retrieve = true;
|
||||
# fixed-list-mode = true;
|
||||
# keyserver = "hkps://keyserver.ubuntu.com:443";
|
||||
# list-options = [ "show-uid-validity" "show-unusable-subkeys" ];
|
||||
# no-comments = true;
|
||||
# no-emit-version = true;
|
||||
# no-greeting = true;
|
||||
# no-symkey-cache = true;
|
||||
# personal-cipher-preferences = "AES256 AES192 AES";
|
||||
# personal-compress-preferences = "ZLIB BZIP2 ZIP Uncompressed";
|
||||
# personal-digest-preferences = "SHA512 SHA384 SHA256";
|
||||
# require-cross-certification = true;
|
||||
# s2k-cipher-algo = "AES256";
|
||||
# s2k-digest-algo = "SHA512";
|
||||
# throw-keyids = true;
|
||||
# use-agent = true;
|
||||
# verbose = true;
|
||||
# verify-options = "show-uid-validity";
|
||||
# with-fingerprint = true;
|
||||
# with-key-origin = true;
|
||||
# };
|
||||
# };
|
||||
bat = {
|
||||
enable = true;
|
||||
config.theme = "gruvbox-dark";
|
||||
|
|
|
|||
|
|
@ -47,3 +47,9 @@ n ()
|
|||
rm -f "$NNN_TMPFILE" > /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
ORIGTMPDIR=$TMPDIR # nix-shell overrides tmpdir, but we want to save it
|
||||
emacsclient ()
|
||||
{
|
||||
command emacsclient -s $ORIGTMPDIR/emacs$(id -u)/server "$@"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue