Skip to content

My dotfiles managed by Nix, could be used by macOS and Linux

Notifications You must be signed in to change notification settings

rick-yao/dotfiles

Repository files navigation

Rick's dotfile

Currently this setup is written by nix flake.

Platforms

  • macOS
  • Ubuntu(which I use most, cannot guarantee for other distribution)

Project Structure

  • flake.nix: Describes the project and its dependencies (only for flake-enabled projects).
  • home-manager/: Describes different hm config based on platform.
  • lib/: Directory for custom Nix functions.
  • machines/: Directory for custom machine config.
  • overlays/: Directory for Nix package overlays.
  • config/: Directory for my custom app config.

How to use

Platform Prerequisite

For MacOS

Some deps need installing.

Optional:

  • 1password -- I use 1password to sync my ssh keys

For Linux

trusted-users = your-user-name

Deploy

MacOS

  1. Update the hostname of your mac
  2. execute command
make deploy-mac
  1. Logout and login to make setting take effect

Linux

  1. execute command
home-manager switch --flake /your/dotfiles/path

Inspired By

This project is heavily inspired by following repo:

  1. mitchellh/nixos-config
  2. ryan4yin/nix-darwin-kickstarter
  3. ryan4yin/nixos-and-flakes-book

About

My dotfiles managed by Nix, could be used by macOS and Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published