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










