diff options
author | Franck Cuny <franck@fcuny.net> | 2022-02-12 13:22:29 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-02-12 13:23:58 -0800 |
commit | 60da6bc47620681b557ea2d105df87b22382efcd (patch) | |
tree | 000a2c858a5bbcd9d0e9ed1c5bd57546420f65d0 /users/fcuny/cli | |
parent | home-manager: last typo (diff) | |
download | world-60da6bc47620681b557ea2d105df87b22382efcd.tar.gz |
home-manager: re-organize configuration for myself
Diffstat (limited to 'users/fcuny/cli')
-rw-r--r-- | users/fcuny/cli/default.nix | 15 | ||||
-rw-r--r-- | users/fcuny/cli/git.nix | 40 | ||||
-rw-r--r-- | users/fcuny/cli/go.nix | 6 | ||||
-rw-r--r-- | users/fcuny/cli/tmux.nix | 13 | ||||
-rw-r--r-- | users/fcuny/cli/zsh.nix | 21 |
5 files changed, 95 insertions, 0 deletions
diff --git a/users/fcuny/cli/default.nix b/users/fcuny/cli/default.nix new file mode 100644 index 0000000..ff2b89f --- /dev/null +++ b/users/fcuny/cli/default.nix @@ -0,0 +1,15 @@ +{ config, lib, pkgs, ...}: + +{ + imports = [ + ./git.nix + ./go.nix + ./tmux.nix + ./zsh.nix + ]; + + home.packages = [ + pkgs.jq + pkgs.ripgrep + ]; +} diff --git a/users/fcuny/cli/git.nix b/users/fcuny/cli/git.nix new file mode 100644 index 0000000..f7aeb27 --- /dev/null +++ b/users/fcuny/cli/git.nix @@ -0,0 +1,40 @@ +{ + programs.git = { + enable = true; + aliases = { + s = "status --short --branch"; + amend = "commit --amend --no-edit"; + }; + extraConfig = { + core.whitespace = "trailing-space,space-before-tab"; + color.ui = "true"; + push.default = "simple"; + init.defaultBranch = "main"; + branch.autosetuprebase = "remote"; + branch.sort = "authordate"; + }; + userName = "Franck Cuny"; + userEmail = "franck@fcuny.net"; + ignores = [ + "*.elc" + "*.iml" + "*.o" + "*.pyc" + "*.pyo" + "*pyc" + "*~" + ".DS_Store" + ".\\#" + ".dir-locals.el" + ".direnv/*" + ".idea" + ".projectile" + ".pytest_cache/" + "/env/*" + "Icon" + "TAGS" + "\\#*\\#" + "tags" + ]; + }; +} diff --git a/users/fcuny/cli/go.nix b/users/fcuny/cli/go.nix new file mode 100644 index 0000000..990b2ae --- /dev/null +++ b/users/fcuny/cli/go.nix @@ -0,0 +1,6 @@ +{ + programs.go = { + enable = true; + goPath = "workspace/go"; + }; +} diff --git a/users/fcuny/cli/tmux.nix b/users/fcuny/cli/tmux.nix new file mode 100644 index 0000000..1a9a2d4 --- /dev/null +++ b/users/fcuny/cli/tmux.nix @@ -0,0 +1,13 @@ +{ + programs.tmux = { + enable = true; + terminal = "xterm-256color"; + escapeTime = 0; + aggressiveResize = true; + shortcut = "z"; + + extraConfig = '' + setw -g mouse on + ''; + }; +} diff --git a/users/fcuny/cli/zsh.nix b/users/fcuny/cli/zsh.nix new file mode 100644 index 0000000..6b56d35 --- /dev/null +++ b/users/fcuny/cli/zsh.nix @@ -0,0 +1,21 @@ +{config, lib, pkgs, ...}: + +{ + + xdg.configFile."zsh/personal".source = config.lib.file.mkOutOfStoreSymlink ../../configs/zsh; + + programs.zsh = { + enable = true; + enableAutosuggestions = true; + enableCompletion = true; + defaultKeymap = "emacs"; + history = { + save = 100000; + extended = true; + ignoreDups = true; + }; + initExtra = '' + source ${config.xdg.configHome}/zsh/personal/init.zsh + ''; + }; +} |