Skip to content

allancalix/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

Contains configuration for my development machines that uses home-manager to manage installing applications and setting up configuration for those applications. Some applications that are setup using home manager in this repository include:

Initial setup

  1. Install home-manager
  2. Perform initial install and configure the system
    ./update.sh

Updating the system configuration

Updating the system configuration is done by running the same ./update.sh command described in the initial setup.

Some files are written using nickel and then converted to the expected format for the tools to consume. This saves some trouble in looking up the schema for a configuration file and allows for configuration validation before updating the system.

To regenerate the nickel files run the ./update.sh --regenerate command. The updated files should be committed to the repository.

How-to

Install programs for development

home.packages = with pkgs; [
  ripgrep
  fd
  eza
  gh
]

Install Vim plugins

programs.neovim = {
  ...
  plugins = with pkgs.vimPlugins; [
    vim-surround
    tabular
    vim-commentary
    hop-nvim
}

Define shell environment variables

home.sessionVariables = {
  EDITOR = "nvim";
  GIT_EDITOR = "nvim -u ~/.config/nvim/minimal.vim";
  PAGER = "less -RFX";
}

Mac OS

Mac system configuration is not managed by home-manager. The configuration is stored in the script/macos file and executed with the ./script/bootstrap script.

References

People sharing how they setup and configure their systems has been incredibly inspirational. Below are some references to other setups that informed some choices made here.

Releases

No releases published

Packages

No packages published