Skip to content

nainteeth/nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

184 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NixOS Configuration

My NixOS configuration, managed with flakes and Home Manager.

Structure

Both system/ and home/ follow the same layout:

  • hosts/ — per-host configuration with one subfolder per machine
  • shared.nix — configuration shared across all hosts
  • modules/ — swappable modules, comment/uncomment imports to enable or disable them

Hosts

  • desktop
  • laptop
  • standalone

First-time setup

NixOS

  1. Clone the repository:

    git clone https://github.com/nainteeth/nix
    cd nix
  2. Build and switch to the NixOS configuration:

    sudo nixos-rebuild switch --flake .#laptop # or use desktop
  3. Reboot the system:

    systemctl reboot

Standalone Home Manager (non-NixOS)

  1. Install the Nix package manager:

    sh <(curl -L https://nixos.org/nix/install) --daemon
  2. Restart your shell or source the Nix profile:

    . /etc/profile.d/nix.sh
  3. Enable flakes:

    mkdir -p ~/.config/nix
    echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
  4. Install Home Manager:

    nix profile install nixpkgs#home-manager
  5. Clone the repository:

    git clone https://github.com/nainteeth/nix
    cd nix
  6. Apply the home configuration:

    home-manager switch --flake .#home

Configure GitHub SSH Access

  1. Generate a new SSH key for GitHub:

    ssh-keygen -t ed25519 -C "CHANGEME@PLEASE.com" -f ~/.ssh/github
  2. Display the public key:

    cat ~/.ssh/github.pub
  3. Copy the public key and add it to your GitHub account under SSH keys.

  4. Update the repository origin to use SSH:

    git remote set-url origin git@github.com:nainteeth/nix.git

Steam Scaling

If you want to use environment variables to scale Steam, you will have to follow these steps: Open Steam, go to Settings > Interface, and ensure "Scale text and icons to match monitor settings" is toggled OFF. If this is ON, Steam will ignore all environment variables.

Spotify Scaling

Open Spotify and scale it with ctrl - or ctrl +.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors