项目作者: daGrevis

项目描述 :
Dotfiles for my UNIX workstations (macOS, Arch Linux & NixOS)
高级语言: Vim script
项目地址: git://github.com/daGrevis/Dotfiles.git
创建时间: 2012-08-21T09:39:00Z
项目社区:https://github.com/daGrevis/Dotfiles

开源协议:

下载


daGrevis’ Dotfiles

This repository contains configuration files for all kinds of software I’m using
on daily basis. Also known as “dotfiles”, these files allow to replicate my
setup on another machine with relative ease.

I’m using this to have practically identical setup between:

  • MacOS running on MacBook Pro
  • NixOS via VirtualBox running on desktop Windows
  • Ubuntu running on my private server

Installation

On both NixOS and MacOS I have Nix and home-manager installed. Then home.nix
(in nix/.config/home-manager) can be used to manage symlinks, installed
packages and other configuration.

In theory, on a working Nix installation with home-manager installed as a
standalone tool, all you would have to do is to symlink my nix configuration
and rebuild the system.

On NixOS

  1. sudo ln -s /home/dagrevis/Dotfiles/nix/etc/nixos /etc/nixos
  2. ln -s /home/dagrevis/Dotfiles/nix/.config/nixpkgs /home/dagrevis/.config/nixpkgs
  3. ln -s /home/dagrevis/Dotfiles/nix/.config/home-manager /home/dagrevis/.config/home-manager

On macOS

  1. ln -s /Users/dagrevis/Dotfiles/nix/.config/nixpkgs /Users/dagrevis/.config/nixpkgs
  2. ln -s /Users/dagrevis/Dotfiles/nix/.config/home-manager /Users/dagrevis/.config/home-manager

Then rebuilding the system and user environment should hopefully bring
everything up!

  1. sudo nixos-rebuild switch --upgrade
  2. home-manager switch

In practice, you will probably need to know what you are doing because things
might need some bit of tweaking here and there. :)

Alternatively you can use stow to create the symlinks and skip all this fancy
schmancy nix business.

  1. stow -t ~ -d ~/Dotfiles -v neovim

Example above would make symlinks for “neovim” package. All top-level
directories in this repo can be symlinked in this way.