summaryrefslogblamecommitdiff
path: root/nixpkgs/common.nix
blob: 1f98b2eb5cefcfcd7ea3789a4aea35e678bb7937 (plain) (tree)
1
2
3
4
5
6
7
8
9
                
                       


                              
 

                     
                             


                                 

                   



                                                 
    


                                 
                                   
    


                                                   








                                     
    



                                           
                                 
 
                                                                       
 
                         
                       


                    














                                    
{ pkgs, ... }: {
  home.username = "lx";
  home.packages = with pkgs; [
    nodejs-slim
  ];

  programs.direnv = {
    enable = true;
    nix-direnv.enable = true;
    enableBashIntegration = true;
  };

  programs.bash = {
    enable = true;
    shellAliases = {
      ll = "ls -lah";
      irc = "ssh -t adnab.me /usr/local/bin/irc";
    };
  };
  programs.keychain = {
    enable = true;
    enableBashIntegration = true;
    keys = [ "~/.ssh/id_ed25519" ];
  };
  programs.vim = {
    enable = true;
    extraConfig = (builtins.readFile ../vim/vimrc);
    plugins = with pkgs.vimPlugins; [
      vim-nix
      fzf-vim
      nerdtree
      vim-go
      coc-nvim
      coc-json
      coc-rust-analyzer
    ];
  };

  programs.git.enable = true;
  programs.git.userName = "Alex Auvolat";
  programs.git.userEmail = "alex@adnab.me";
  programs.git.lfs.enable = true;

  home.file = { ".config/tmux/tmux.conf".source = ../tmux/tmux.conf; };

  xsession.enable = true;
  home.keyboard = null;

  xdg.enable = true;
  xdg.userDirs = {
    desktop = null;
    documents = null;
    pictures = null;
    music = null;
    publicShare = null;
    templates = null;
    videos = null;
  };

  services.syncthing.enable = true;

  nixpkgs.config.allowUnfree = true;

  home.stateVersion = "22.11";
}