Skip to content

Latest commit

 

History

History
78 lines (49 loc) · 2.16 KB

README.md

File metadata and controls

78 lines (49 loc) · 2.16 KB

NixDots

license

Dotfiles for NixOS using Flakes. Contains modules and configurations for NixOS, nix-on-droid and Home Manager.

Using existing configurations

  1. Make sure to have NixOS, nix-on-droid or just Nix properly installed.

  2. Enable Flakes if you haven't already.

  3. Enter the repository.

git clone --depth 1 https://github.com/brckd/nixdots
cd nixdots
  1. Build and activate the home configuration.
nix run home-manager/master -- switch --flake .
  1. Build and activate the system configuration, if one exists.

On NixOS (device specific)

sudo nixos-rebuild switch --flake .

On nix-on-droid

nix-on-droid switch --flake .

Creating new Configurations

On NixOS

  1. Create a new directory at ./configurations/nixos/$HOSTNAME.

  2. Use nixos-generate-config to create a hardware configuration.

nixos-generate-config --dir ./configurations/nixos/$HOSTNAME
  1. Create a default.nix module that imports configuration.nix to configure your system.

On nix-on-droid

Just override the existing configuration in ./configurations/droid/default.nix.

On Home Manager

  1. Create a new directory at ./configurations/home/$USERNAME

  2. Create a default.nix module to configure your user.

Acknowledgements

Special thanks to the dotfiles that heavily inspired me!

See the Flake inputs for some of the programs used. Check my GitHub stars for more incredible projects!