From 27496a4209360148a966bd5633923a4d91ae3e14 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Wed, 23 Dec 2020 20:38:25 +0530 Subject: adds magic symlinking config + move gpg agent config to home manager --- configuration.nix | 8 ++++---- external/zsh/paths.zsh | 2 +- home.nix | 26 ++++++++++++++++++++------ 3 files changed, 25 insertions(+), 11 deletions(-) diff --git a/configuration.nix b/configuration.nix index abfc199..c2c32fa 100644 --- a/configuration.nix +++ b/configuration.nix @@ -58,10 +58,10 @@ sound.enable = true; # hardware.pulseaudio.enable = true; - programs.gnupg.agent = { - enable = true; - enableSSHSupport = false; - }; + #programs.gnupg.agent = { + #enable = true; + #enableSSHSupport = false; + #}; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions diff --git a/external/zsh/paths.zsh b/external/zsh/paths.zsh index 7f5b26b..2efc0ce 100644 --- a/external/zsh/paths.zsh +++ b/external/zsh/paths.zsh @@ -30,7 +30,7 @@ export PATH; # Util config export rofi_LIBS=/usr; -export GNUPGHOME=$XDG_CONFIG_HOME/gnupg; +export GNUPGHOME=$HOME/.gnupg; export PASSWORD_STORE_DIR=$XDG_CONFIG_HOME/password-store; export BTPD_HOME=$XDG_CONFIG_HOME/btpd; diff --git a/home.nix b/home.nix index b142b24..14497c8 100644 --- a/home.nix +++ b/home.nix @@ -1,14 +1,28 @@ { pkgs, ... }: { - home.packages = with pkgs; [ - picom - mtm - ]; + #home.packages = with pkgs; [ + #picom + #]; + + services.gpg-agent = { + enable = true; + maxCacheTtl = 864000; + defaultCacheTtl = 864000; + enableSshSupport = false; + }; + + home.file = { + ".config/dunst".source = ./config/dunst; + ".config/lf".source = ./config/lf; + ".config/qutebrowser".source = ./config/qutebrowser; + ".local/share/qutebrowser/userscripts".source = ./config/qutebrowser/userscripts; + ".local/share/qutebrowser/greasemonkey".source = ./config/qutebrowser/greasemonkey; + # ".local/share/qutebrowser/sessions".source = ./private-config/qutebrowser/sessions; + }; services.picom = { enable = true; backend = "glx"; - inactiveOpacity = "0.8"; inactiveDim = "0.3"; opacityRule = [ "98:class_g = 'St' && focused" @@ -17,7 +31,7 @@ "100:class_g = 'qutebrowser' && focused" ]; extraOptions = '' - focus-exclude = [ "class_g = 'dwm'" "class_g = 'dmenu'"]; + focus-exclude = [ "class_g = 'dwm'", "class_g = 'dmenu'"]; ''; menuOpacity = "0.9"; }; -- cgit v1.3.1