Go to file
2022-10-22 15:10:30 +00:00
apps move apps declaration to apps directory 2022-10-18 12:31:42 +00:00
hosts move generators to hosts directory 2022-10-18 12:21:22 +00:00
legacy remove some legacy config files 2022-07-26 00:09:25 -04:00
modules replace vimwiki with mkdnflow 2022-10-22 14:29:50 +00:00
patches move calibre-web patch to patches directory 2022-10-18 03:19:23 +00:00
private working vaultwarden 2022-10-16 18:10:11 +00:00
templates add basic nix flake template 2022-08-07 12:52:03 -06:00
windows add windows app plaintext list 2022-10-22 15:10:30 +00:00
.envrc more flakiness 2022-04-27 09:23:26 -04:00
.gitignore ignore non-age files in private dir 2022-10-18 12:25:06 +00:00
flake.lock Merge branch 'aws-nix-build' 2022-10-01 15:26:01 +00:00
flake.nix move apps declaration to apps directory 2022-10-18 12:31:42 +00:00
LICENSE add MIT license 2022-07-27 19:03:31 -04:00
README.md docs: deprecated nixFlakes package 2022-10-01 21:42:33 +00:00

This repository contains configuration files for my NixOS, macOS, and WSL hosts.

They are organized and managed by Nix, so some of the configuration may be difficult to translate to a non-Nix system.

However, some of the configurations are easier to lift directly:


Installation

NixOS - From Live Disk

Format drives and build system from any NixOS host, including the live installer disk:

This will erase your drives; use at your own risk!

lsblk # Choose the disk you want to wipe
nix-shell -p nixVersions.stable
nix run github:nmasur/dotfiles#installer -- nvme0n1 desktop

NixOS - From Existing System

If you're already running NixOS, you can switch to this configuration with the following command:

nix-shell -p nixVersions.stable
sudo nixos-rebuild switch --flake github:nmasur/dotfiles#desktop

Windows - From NixOS WSL

After installing NixOS on WSL, you can switch to the WSL configuration:

nix-shell -p nixVersions.stable
sudo nixos-rebuild switch --flake github:nmasur/dotfiles#wsl

You should also download the FiraCode font and install it on Windows. Install Alacritty and move the windows/alacritty.yml file to C:\Users\<user>\AppData\Roaming\alacritty.

macOS

To get started on a bare macOS installation, first install Nix:

sh -c "$(curl -L https://nixos.org/nix/install)"

Then use Nix to build nix-darwin:

nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer
./result/bin/darwin-installer

Then switch to the macOS configuration:

darwin-rebuild switch --flake github:nmasur/dotfiles#macbook

Dealing with corporate MITM SSL certificates:

# Get the certificates
openssl s_client -showcerts -verify 5 -connect cache.nixos.org:443 < /dev/null

# Paste them in here
sudo nvim $NIX_SSL_CERT_FILE

Dealing with Neovim issues:

Update Neovim Packer plugins: :PackerSync

Update TreeSitter languages: :TSUpdateSync


Flake Templates

You can also use the templates as flakes for starting new projects:

nix flake init --template github:nmasur/dotfiles#poetry