How To Configure Basic Settings for NixOS @Liv4IT
How To Configure Basic Settings for NixOS  @Liv4IT
Uploaded March 2025 | Updated September 2026, 2 weeks ago
How To Configure Basic Settings for NixOS

NixOS is a declarative, reproducible, and immutable Linux distribution built around the Nix package manager. Unlike traditional Linux distributions, where system configurations are managed imperatively (by editing files manually), NixOS uses a single configuration file (/etc/nixos/configuration.nix) to define the entire system state.

This makes NixOS ideal for servers, home labs, and developers who want a consistent, reproducible environment.

๐Ÿ”น Key Features of NixOS
๐Ÿ“œ Declarative Configuration โ€“ All settings are defined in configuration.nix.
โ™ป๏ธ Rollback Support โ€“ Easily revert changes using generation-based system management.
๐Ÿ“ฆ Atomic Upgrades โ€“ No partial upgrades; everything is built as a complete system.
๐Ÿ”„ Reproducibility โ€“ Identical configurations produce identical results on any machine.
๐Ÿš€ Flexible Package Management โ€“ Supports multiple package versions using Nix.

Basic Configuration in NixOS
Since you are running NixOS as a VM in Proxmox with UEFI and Hyprland, hereโ€™s how to configure basic settings like a static IP and installing QEMU guest agent.

1๏ธโƒฃ Configure a Static IP Address
NixOS manages networking declaratively via configuration.nix.
Steps to Set a Static IP:
Open the configuration file:
sudo nano /etc/nixos/configuration.nix
Add or modify the networking section:
networking = {
useDHCP = false;
interfaces.enp0s18 = {
ipv4.addresses = [
{
address = "192.168.1.100"; # Change to your desired IP
prefixLength = 24;
}
];
ipv4.routes = [
{
address = "0.0.0.0";
prefixLength = 0;
via = "192.168.1.1"; # Replace with your gateway/router IP
}
];
};
};
Replace enp0s18 with your actual network interface (find it with ip a).
Update the IP, subnet, and gateway based on your network.
Apply the changes:
sudo nixos-rebuild switch
Verify with:
ip a

2๏ธโƒฃ Install and Enable QEMU Guest Agent
Since youโ€™re running NixOS in Proxmox, you should install the QEMU guest agent to enable features like proper shutdown, memory ballooning, and IP reporting.

Steps to Install and Enable QEMU Guest Agent:
Edit configuration.nix:
sudo nano /etc/nixos/configuration.nix
Add the following under services:
services.qemuGuest.enable = true;
Apply the changes:
sudo nixos-rebuild switch
Check if the guest agent is running:
systemctl status qemu-guest-agent



Resources & Links:
nixos.org/manual/nixos/stable
nixos.org
proxmox.com/en











๐ŸŒธ Buy me a coffee :
buymeacoffee.com/liv4it

๐ŸŒธ Support channel & make donation :
paypal.me/aminenina/10

๐ŸŒธ Subscribe for more videos :
Youtube: youtube.com/user/aminosninatos

๐ŸŒธ Follow me On Social Media
Facebook : facebook.com/aminosninatos

***********************************************************************
๐ŸŒธ How To Install NixOS On Proxmox
youtu.be/KRrwJkb1xpk

๐ŸŒธ How To Install & Configure Technitium DNS Server on Proxmox
youtu.be/m3lNqy3HAvA

๐ŸŒธ How To Use The Awesome Linux Bat Command
youtu.be/N50jo1gat7M

๐ŸŒธ Windows Subsystem for Linux WSL2 Commands
youtu.be/mO3Cqb9zYPM

๐ŸŒธ This Little Trick Will Prevent You From Messing Up With Your Application Database
youtu.be/BdFo21oxKgw

๐ŸŒธ PIP The Package Manager for Python
youtu.be/aO7o2fMKWx0

๐ŸŒธ How to read Crystal Disk Info
youtu.be/N3tUXypxNYk

๐ŸŒธ How To Monitor the Health of Your Hard Drive in Linux using SMART
https://www.youtube.com/watch?v=z1z9R...

๐ŸŒธ Linux iotop: Monitor your disk Input/Output
https://www.youtube.com/watch?v=pWG4v...

๐ŸŒธ How To use the โ€œduโ€ (Disk Usage) Command in Linux
https://www.youtube.com/watch?v=RA4bM...

๐ŸŒธ How To Install And Configure CrowdSec on pfSense
youtu.be/p4sAHjtboMI

๐ŸŒธ How to Install And Configure pfBlockerNG On pfSense
youtu.be/AGOcaKijLu4

๐ŸŒธ How To Enable Automatic Backups In pfSense
youtu.be/mFMKqUvPJFw

๐ŸŒธ How To Apply System Patches For pfSense CE (Community Edition)
youtu.be/qs4sRnNdpYY

๐ŸŒธ How To Setup VLANs on pfSense In Proxmox
youtu.be/EpFQD-HtwXk

๐ŸŒธ How To Install QEMU Guest Agent On pfSense VM In Proxmox
youtu.be/c88-byEL7UM

๐ŸŒธHow To Install The world's most popular workflow automation platform n8n On Proxmox
youtu.be/J1cpJRuTHwE

๐ŸŒธHow To Setup Notifications On Uptime Kuma a Self Hosted Monitoring Application
youtu.be/Cp-rAatifMk

๐ŸŒธHow To Install Uptime Kuma a Self Hosted Monitoring Application on Proxmox
youtu.be/cCxgkHd0E9Y

๐ŸŒธHow To Install Vyos an Amazing Open Source Router On Proxmox
youtu.be/dscAQIoDU7w

๐ŸŒธHow To Install an SSL Certificate on Proxmox
youtu.be/lCkrsaDEiT4

๐ŸŒธ How To Lower The Power Use of Proxmox Server
youtu.be/FJiEeHmiiH0


๐ŸŒธ How To Install Packages on Proxmox VM with Terraform
youtu.be/RRJrLTeU67Y

***********************************************************************
#NixOS #proxmox #linux
How To Configure Basic Settings for NixOSHow To Use The Awesome Linux Bat CommandMikroTik RouterOS LTS Explained & Install on Proxmox VEProxmox Backup with Veeam Backup & Replication 12.2How to setup a free load balancer using Kemp loadMasterProxmox Subscription and Update RepositoriesHow To Configure Port Forwarding On pfSenseHow to Create a Virtual Machine in Hyper-V Core in WorkgroupHow To Install Root Certificate Authority (CA) in LinuxHow To Install Ubuntu 24.04 Noble Numbat on Proxmox VEProxmox Useful CLI CommandsHow to use Windows Sandbox on Windows 11
Liv4IT |

How To Configure Basic Settings for NixOS

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER