Caution
this is my personal NixOS configuration with flakes and home-manager make sure to change packages that you dont need before installing it!
This is a template - copy the files you need and adjust to your system.
- NixOS with flakes enabled (or Nix installed on any Linux)
- Home-manager
# 1. Copy the home-manager module
cp -r ~/flakey/modules/home-manager ~/.config/
# 2. Create your home.nix
cp ~/flakey/home-manager/home.nix ~/.config/nixpkgs/home.nix
# 3. Edit the username in home.nix
nano ~/.config/nixpkgs/home.nix| File | Purpose |
|---|---|
modules/home-manager/ |
Main home-manager module |
home-manager/home.nix |
Entry point - import modules here |
home-manager/symlinks.nix |
Symlink configs |
Edit these files before running:
# Set your username in:
# - home-manager/home.nix (username variable)
# - home-manager/users.nix
# Add/remove packages in:
# - modules/home-manager/packages.nix
# Configure programs in:
# - modules/home-manager/programs.nixhome-manager switchSame as above - this works on any Linux with Nix installed.