+
Skip to content

PeraltaBoi/nixos

Repository files navigation

NixOS Configuration

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

Overview

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...

Screenshots

Hyprland (no i don't use a bar, but you can find some nice configs online)

Neovim Setup

Prerequisites

  • NixOS installed
  • Git
  • home-manager
  • Flakes enabled

Installation

  1. Clone this repository:
git clone https://github.com/peraltaboi/nixos.git
cd nixos-config
  1. Swap out the hardware-configuration.nix for your own

  2. 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' {} +
  1. You should probably change the home/tiago directory to your username too

  2. Create a home//code/private.nix file with this format:

{
  git-email = "your-git-email";
  git-name = "your-git-username";
}
  1. Create a symlink for the system configuration:
sudo ln -s $(pwd)/configuration.nix /etc/nixos/configuration.nix
  1. Build and switch to the new configuration:
sudo nixos-rebuild switch

Updating

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/

About

My NixOS Config!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载