Skip to content

rahulgotrekiya/nix-configs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

❄️ My NixOs Configs ❄️

This repository contains my personal Nix configuration (NixOS and Home Manager). It uses Nix flakes and is meant to be reproducible. Feel free to use, fork, or reference it for your setup.


⚡ Screenshots


📁 File Structure

  • home/ – Home Manager configurations for user environments
  • nixos/ – NixOS configurations for system-level setup
  • flake.nix – Main Nix flake file, defines inputs/outputs
  • flake.lock – Lock file for reproducible builds

⚙️ Installation & Usage

1. Enable Flakes

To enable Flakes, add the following line to your configuration.nix file (usually located at /etc/nixos/configuration.nix):

nix.settings.experimental-features = [ "nix-command" "flakes" ];

After saving the file, apply the changes by running:

sudo nixos-rebuild switch

This enables both the nix command and Flakes support system-wide.

2. Install Home Manager

nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
nix-shell '<home-manager>' -A install

3. Clone this Repository

git clone https://github.com/RahulGotrekiya/nix-configs.git ~/dotfiles
cd ~/dotfiles

4. Replace hardware-configuration

Replace the contents of ~/dotfiles/nixos/hardware-configuration.nix file with the one generated for your system, usually located at /etc/nixos/hardware-configuration.nix.

5. Build & Apply Config

NixOS system (replace nixos with your hostname):

sudo nixos-rebuild switch --flake .#nixos

Home Manager user config:

home-manager switch --flake .#rahul

Thank you ❤️

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published