My personal NixOS system configuration and home-manager dotfiles.
This config won't work by itself for now due to the git config missing (i don't want to publish my email), I will look for a fix
This repository contains my NixOS configuration files, including:
- System configuration (NixOS)
- Home configuration (home-manager)
- Development environment setup
- Customized configurations for:
- Hyprland
- Neovim (using nixvim)
- Helix
- Emacs (kinda)
- Git
- And maybe more...
(no i don't use a bar, but you can find some nice configs online)
- NixOS installed
- Git
- home-manager
- Flakes enabled
- Clone this repository:
git clone https://github.com/peraltaboi/nixos.git
cd nixos-config
-
Swap out the hardware-configuration.nix for your own
-
Edit all occurences of "tiago" (my username!) to yours (or not :p)
# Run this in the nixos directory
find . -type f -exec sed -i 's/tiago/<your-username>/gI' {} +
find . -type f -exec sed -i 's/Tiago[[:space:]]\+Peralta/<your full name (or whatever you want to use)>/gI' {} +
-
You should probably change the home/tiago directory to your username too
-
Create a home//code/private.nix file with this format:
{
git-email = "your-git-email";
git-name = "your-git-username";
}
- Create a symlink for the system configuration:
sudo ln -s $(pwd)/configuration.nix /etc/nixos/configuration.nix
- Build and switch to the new configuration:
sudo nixos-rebuild switch
To update all flake inputs:
nix flake update
To update a specific input:
nix flake lock --update-input nixpkgs
To update a specific input to a specific commit (nixpkgs example) nix flake lock --override-input nixpkgs github:NixOS/nixpkgs/