From 0fe1e2445f805a9558cb19540966e72a02fc5326 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 10 Jan 2023 18:53:01 +0100 Subject: reformat home manager config and add aliases --- kusanagi/nixpkgs/Makefile | 1 + kusanagi/nixpkgs/home.nix | 20 ++++++++------------ 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/kusanagi/nixpkgs/Makefile b/kusanagi/nixpkgs/Makefile index c0eafb3..e99f6c2 100644 --- a/kusanagi/nixpkgs/Makefile +++ b/kusanagi/nixpkgs/Makefile @@ -1,2 +1,3 @@ all: + nixfmt home.nix home-manager switch -f home.nix diff --git a/kusanagi/nixpkgs/home.nix b/kusanagi/nixpkgs/home.nix index eae4f96..ae8bc5d 100644 --- a/kusanagi/nixpkgs/home.nix +++ b/kusanagi/nixpkgs/home.nix @@ -1,34 +1,30 @@ -{ pkgs, ...}: { +{ pkgs, ... }: { home.username = "lx"; home.homeDirectory = "/home/lx"; programs.bash = { enable = true; + shellAliases = { + ll = "ls -lah"; + irc = "ssh -t adnab.me /usr/local/bin/irc"; + }; }; programs.keychain = { enable = true; enableBashIntegration = true; - keys = [ - "/home/lx/.ssh/id_ed25519" - ]; + keys = [ "/home/lx/.ssh/id_ed25519" ]; }; programs.vim = { enable = true; extraConfig = (builtins.readFile ../vim/vimrc); - plugins = with pkgs.vimPlugins; [ - vim-nix - fzf-vim - nerdtree - ]; + plugins = with pkgs.vimPlugins; [ vim-nix fzf-vim nerdtree ]; }; programs.git.enable = true; programs.git.userName = "Alex Auvolat"; programs.git.userEmail = "alex@adnab.me"; - home.file = { - ".config/tmux/tmux.conf".source = ../tmux/tmux.conf; - }; + home.file = { ".config/tmux/tmux.conf".source = ../tmux/tmux.conf; }; xsession.enable = true; -- cgit v1.2.3