From f7d170c6436cb1ae6aa1a32cf75b53621ee60fa9 Mon Sep 17 00:00:00 2001 From: Don Harper Date: Tue, 13 Sep 2022 21:46:56 -0500 Subject: [PATCH] home-manager | configs --- user/don/home.nix | 48 ++++++++++++++++++++++++++++++++--------------- 1 file changed, 33 insertions(+), 15 deletions(-) diff --git a/user/don/home.nix b/user/don/home.nix index 22de90a..e14ac01 100644 --- a/user/don/home.nix +++ b/user/don/home.nix @@ -1,10 +1,9 @@ { config, pkgs, ... }: { - # Home Manager needs a bit of information about you and the - # paths it should manage. home.username = "don"; home.homeDirectory = "/home/don"; + home.stateVersion = "22.05"; home.packages = [ pkgs.bc @@ -22,12 +21,10 @@ pkgs.gtop pkgs.isync pkgs.jq - pkgs.keychain pkgs.khal pkgs.khard pkgs.links2 pkgs.mairix - pkgs.mpv pkgs.mutt pkgs.mutt-ics pkgs.nerdfonts @@ -50,16 +47,37 @@ pkgs.vit ]; - # This value determines the Home Manager release that your - # configuration is compatible with. This helps avoid breakage - # when a new Home Manager release introduces backwards - # incompatible changes. - # - # You can update Home Manager without changing this value. See - # the Home Manager release notes for a list of state version - # changes in each release. - home.stateVersion = "22.05"; - - # Let Home Manager install and manage itself. programs.home-manager.enable = true; + programs.keychain = { + enable = true; + enableBashIntegration = true; + agents = "ssh"; + keys = "id_aur id_dsa id_ed25519 id_rsa 56913AD86A18257132AA9F03928BC0B78C1BF5AA"; + inheritType = "any"; + }; + programs.mpv = { + enable = true; + config = { + cache-dir = "~/.cache"; + cache-on-disk = "yes"; + cache = "yes"; + demuxer-max-back-bytes = "100M"; + demuxer-max-bytes = "500M"; + demuxer-readahead-secs = "20"; + pause = "no"; + save-position-on-quit = "yes"; + slang = "en"; + user-agent = "Mozilla/5.0"; + ytdl-format="bestvideo[height<=?1080]+bestaudio/best"; + ytdl-raw-options = "no-playlist="; + ytdl = "yes"; + script-opts = "ytdl_hook-ytdl_path=yt-dlp"; + }; + scripts = [ pkgs.mpvScripts.autoload ]; + }; + services.gpg-agent = { + enable = true; + defaultCacheTtl = 1800; + enableSshSupport = true; + }; }