From fdf1c788488534825abdbfe8f8c0e8e95a876d57 Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Fri, 29 Sep 2023 21:02:23 -0700 Subject: nix: reorg programs into modules --- darwin/home.nix | 61 +-------------------------------------------------------- 1 file changed, 1 insertion(+), 60 deletions(-) (limited to 'darwin') diff --git a/darwin/home.nix b/darwin/home.nix index 5e24a76..1188c65 100644 --- a/darwin/home.nix +++ b/darwin/home.nix @@ -45,65 +45,6 @@ }; imports = [ - ../modules/zsh.nix + ../modules/common.nix ]; - - home.sessionVariables = { - PATH = "$PATH:$HOME/.bin"; - EDITOR = "nvim"; - MANPAGER = "nvim +Man!"; - }; - - programs.home-manager.enable = true; - programs.fzf = { - enable = true; - enableZshIntegration = false; - defaultOptions = [ "--height 40%" "--layout=reverse" "--border" ]; - }; - programs.git = { - enable = true; - userEmail = "ssaini@fispan.com"; - userName = "Shubham Saini"; - signing = { - key = "E0404DDE4BCF9DB5"; - signByDefault = true; - }; - }; - programs.lf = { - enable = true; - settings = { - shell = "sh"; - icons = true; - drawbox = true; - scrolloff = 10; - shellopts = "-eu"; - }; - commands = { - extract = '' - %{{ - set -f - case $f in - *.tar.bz|*.tar.bz2|*.tbz|*.tbz2) tar xjvf $f;; - *.tar.gz|*.tgz) tar xzvf $f;; - *.tar.xz|*.txz) tar xJvf $f;; - *.zip) unzip $f;; - *.rar) unrar x $f;; - *.7z) 7z x $f;; - esac - }} - ''; - open = '' - %{{ - case $(file --mime-type -Lb $f) in - text/*) lf -remote "send $id \$$EDITOR \$fx";; - *) for f in $fx; do $OPENER $f > /dev/null 2> /dev/null & done;; - esac - }} - ''; - }; - keybindings = { - "" = "shell"; - "." = "set hidden!"; - }; - }; } -- cgit v1.2.3