diff options
author | William Carroll <wpcarro@gmail.com> | 2020-03-05T17·26+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-03-06T10·15+0000 |
commit | fe61dee51170a4aa7cdd984e03e56d4dc45afbb9 (patch) | |
tree | 7ee427504bee31df4a6e62f763fd43f749e1eea9 /configs/.config/nixpkgs/home.nix | |
parent | 137bd6dc0c8ef65d89c0daada860a2dd25460983 (diff) |
Splice configs/shared directory
- Move all children from configs/shared into configs. - Delete "shared" directory.
Diffstat (limited to 'configs/.config/nixpkgs/home.nix')
-rw-r--r-- | configs/.config/nixpkgs/home.nix | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/configs/.config/nixpkgs/home.nix b/configs/.config/nixpkgs/home.nix new file mode 100644 index 000000000000..d9b3cae931a8 --- /dev/null +++ b/configs/.config/nixpkgs/home.nix @@ -0,0 +1,90 @@ +{ config, pkgs, ... }: + +{ + home = { + packages = with pkgs; [ + bat + exa + ripgrep + fd + pass + tokei + nmap + tldr + diskus + jq + pup + ]; + sessionVariables = { + }; + stateVersion = "19.09"; + }; + + ############################################################################## + # Programs + ############################################################################## + + programs.home-manager = { + enable = true; + path = builtins.toPath ~/home-manager; + }; + + programs.git = { + enable = true; + userName = "William Carroll"; + userEmail = "wpcarro@gmail.com"; + aliases = { + today = "! git log --date=relative --since=00:00:00 --all --no-merges --oneline --author=\"$(git config --get user.email)\""; + yday = "! git log --since=yesterday.midnight --until=today.midnight --oneline --author=\"$(git config --get user.email)\""; + changed-files = "! git --no-pager diff --name-only $(current_branch) $(git merge-base $(current_branch) master)"; + conflicts = "! git --no-pager diff --name-only --diff-filter=U"; + unstage = "reset HEAD --"; + }; + extraConfig = { + push.default = "current"; + rebase = { + autosquash = true; + autostash = true; + }; + rerere.enabled = true; + }; + }; + + programs.gpg = { + enable = true; + settings = { + keyserver = "hkp://pgp.mit.edu"; + }; + }; + + programs.ssh = { + enable = true; + matchBlocks = { + desktop = { + user = "wpcarro"; + hostname = "zeno.lon.corp.google.com"; + }; + socrates = { + user = "wpcarro"; + hostname = "84.92.33.141"; + }; + }; + }; + + programs.fzf = rec { + defaultCommand = "fd --hidden --follow --exclude '.git'"; + fileWidgetCommand = defaultCommand; + }; + + ############################################################################## + # Services + ############################################################################## + + services.lorri.enable = true; + + services.gpg-agent = { + enable = true; + defaultCacheTtl = 7200; + maxCacheTtl = 7200; + }; +} |