From 6b52fb70ed1c9fa501c0950a850529f074eb403e Mon Sep 17 00:00:00 2001 From: Alexandre LUCAZEAU Date: Fri, 17 Dec 2021 12:30:51 +0100 Subject: [PATCH] ADD : variables.nix - load global variable. Not use by fish FIX : gnupg.nix - add pinentry --- nixpkgs/gnupg.nix | 1 + nixpkgs/home.nix | 1 + nixpkgs/variables.nix | 12 ++++++++++++ 3 files changed, 14 insertions(+) create mode 100644 nixpkgs/variables.nix diff --git a/nixpkgs/gnupg.nix b/nixpkgs/gnupg.nix index ef018bc..7af5dcb 100644 --- a/nixpkgs/gnupg.nix +++ b/nixpkgs/gnupg.nix @@ -9,6 +9,7 @@ gpg-agent = { enable = true; enableSshSupport = true; + pinentryFlavor = "curses"; }; }; } diff --git a/nixpkgs/home.nix b/nixpkgs/home.nix index e498319..77344c0 100644 --- a/nixpkgs/home.nix +++ b/nixpkgs/home.nix @@ -3,6 +3,7 @@ ./packages.nix ./gnupg.nix ./git.nix + ./variables.nix ]; home.keyboard = { layout = "fr"; diff --git a/nixpkgs/variables.nix b/nixpkgs/variables.nix new file mode 100644 index 0000000..a1a5bb1 --- /dev/null +++ b/nixpkgs/variables.nix @@ -0,0 +1,12 @@ +{ config, pkgs, lib, ... }: +with lib; { +config ={ + home.sessionVariables = { + LESS = "--quit-if-one-screen --RAW-CONTROL-CHARS"; + EDITOR = "vim"; + TERMINAL = "xfce4-terminal"; + BROWSER = "firefox"; + PRIVATE_BROWSER = "firefox -private"; + }; +}; +}