summaryrefslogblamecommitdiff
path: root/nixpkgs/common.nix
blob: 21b941d6a85f225b98775057749c6e66c6e3b2d5 (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";
    };
    bashrcExtra = ''
      export PATH=$HOME/.cargo/bin:$PATH
    '';
  };
  programs.vim = {
    enable = true;
    extraConfig = (builtins.readFile ../vim/vimrc);
    plugins = with pkgs.vimPlugins; [
      fzf-vim
      nerdtree
      coc-nvim
      coc-json
      coc-rust-analyzer
      vim-nix
      vim-hcl
      vim-go
    ];
  };

  programs.git = {
    enable = true;
    lfs.enable = true;
    userName = "Alex Auvolat";
    userEmail = "alex@adnab.me";
    signing.key = "0E496D15096376BE";
  };

  home.file = {
    ".vim/coc-settings.json".source = ../vim/coc-settings.json;
    ".config/tmux/tmux.conf".source = ../tmux/tmux.conf;
    ".config/qutebrowser/config.py".source = ../qutebrowser/config.py;
    ".config/fcitx5/profile".source = ../fcitx5/profile;
  };

  services.syncthing.enable = true;

  xsession.enable = true;

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

  nixpkgs.config.allowUnfree = true;

  home.stateVersion = "22.11";
}