Skip to content

jackdbd/nix-config

Repository files navigation

❄️ nix-config

Built with Nix

NixOS and Home Manager configuration for my machines.

Installation / Update

NixOS hosts

From the root of this repository, apply both the NixOS configuration and the Home Manager configuration:

sudo nixos-rebuild switch --flake ./#x220-nixos --show-trace --verbose

From the root of this repository, apply only the Home Manager configuration:

home-manager switch \
  --extra-experimental-features nix-command \
  --extra-experimental-features flakes \
  --flake .#jack@x220-nixos

ℹ️ As long as the configuration of a host (e.g. nixos/hosts/x220/configuration.nix) includes nix.settings.experimental-features = [ "nix-command" "flakes" ]; the --extra-experimental-features flags can be omitted.

home-manager switch --flake .#jack@x220-nixos

See also: Setup a new NixOS machine.

Non-NixOS hosts

See: Setup a new generic Linux machine.

Docs

Credits

I learned a lot by looking at other people's NixOS and Home Manager configurations. Here is a non exhaustive list of repositories I often look at for inspiration, and why I think they are worth mentioning.

  • it's well organized and well documented.
  • it contains a few notes that explain how to manage this configuration.
  • it configures Neovim using an external Nix flake.
  • it includes a build script to deploy the configuration to a new NixOS machine.
  • it's well documented. There is a short README in almost any directory. This keeps the documentation focused on a small subset of the entire configuration. I really like this approach.
  • the author wrote this NixOS & Flakes Book.

Other

About

❄️ NixOS and Home Manager configurations for my machines

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages