My NixOS configuration, managed with flakes and Home Manager.
Both system/ and home/ follow the same layout:
hosts/— per-host configuration with one subfolder per machineshared.nix— configuration shared across all hostsmodules/— swappable modules, comment/uncomment imports to enable or disable them
desktoplaptopstandalone
-
Clone the repository:
git clone https://github.com/nainteeth/nix cd nix -
Build and switch to the NixOS configuration:
sudo nixos-rebuild switch --flake .#laptop # or use desktop -
Reboot the system:
systemctl reboot
-
Install the Nix package manager:
sh <(curl -L https://nixos.org/nix/install) --daemon -
Restart your shell or source the Nix profile:
. /etc/profile.d/nix.sh -
Enable flakes:
mkdir -p ~/.config/nix echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
-
Install Home Manager:
nix profile install nixpkgs#home-manager
-
Clone the repository:
git clone https://github.com/nainteeth/nix cd nix -
Apply the home configuration:
home-manager switch --flake .#home
-
Generate a new SSH key for GitHub:
ssh-keygen -t ed25519 -C "CHANGEME@PLEASE.com" -f ~/.ssh/github
-
Display the public key:
cat ~/.ssh/github.pub -
Copy the public key and add it to your GitHub account under SSH keys.
-
Update the repository origin to use SSH:
git remote set-url origin git@github.com:nainteeth/nix.git
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.
Open Spotify and scale it with ctrl - or ctrl +.