Dotfiles for NixOS using Flakes. Contains modules and configurations for NixOS, nix-on-droid and Home Manager.
-
Make sure to have NixOS, nix-on-droid or just Nix properly installed.
-
Enable Flakes if you haven't already.
-
Enter the repository.
git clone --depth 1 https://github.com/brckd/nixdots
cd nixdots
- Build and activate the home configuration.
nix run home-manager/master -- switch --flake .
- 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 .
-
Create a new directory at
./configurations/nixos/$HOSTNAME
. -
Use
nixos-generate-config
to create a hardware configuration.
nixos-generate-config --dir ./configurations/nixos/$HOSTNAME
- Create a
default.nix
module that importsconfiguration.nix
to configure your system.
Just override the existing configuration in ./configurations/droid/default.nix
.
-
Create a new directory at
./configurations/home/$USERNAME
-
Create a
default.nix
module to configure your user.
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!