MENU

Fun & Interesting

How To Configure Basic Settings for NixOS

Liv4IT 572 1 month ago
Video Not Working? Fix It Now

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: https://nixos.org/manual/nixos/stable/ https://nixos.org/ https://www.proxmox.com/en/ 🌸 Buy me a coffee : https://buymeacoffee.com/liv4it 🌸 Support channel & make donation : https://www.paypal.me/aminenina/10 🌸 Subscribe for more videos : Youtube: https://www.youtube.com/user/aminosninatos 🌸 Follow me On Social Media Facebook : https://www.facebook.com/aminosninatos/ *********************************************************************** 🌸 How To Install NixOS On Proxmox https://youtu.be/KRrwJkb1xpk 🌸 How To Install & Configure Technitium DNS Server on Proxmox https://youtu.be/m3lNqy3HAvA 🌸 How To Use The Awesome Linux Bat Command https://youtu.be/N50jo1gat7M 🌸 Windows Subsystem for Linux WSL2 Commands https://youtu.be/mO3Cqb9zYPM 🌸 This Little Trick Will Prevent You From Messing Up With Your Application Database https://youtu.be/BdFo21oxKgw 🌸 PIP The Package Manager for Python https://youtu.be/aO7o2fMKWx0 🌸 How to read Crystal Disk Info https://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 https://youtu.be/p4sAHjtboMI 🌸 How to Install And Configure pfBlockerNG On pfSense https://youtu.be/AGOcaKijLu4 🌸 How To Enable Automatic Backups In pfSense https://youtu.be/mFMKqUvPJFw 🌸 How To Apply System Patches For pfSense CE (Community Edition) https://youtu.be/qs4sRnNdpYY 🌸 How To Setup VLANs on pfSense In Proxmox https://youtu.be/EpFQD-HtwXk 🌸 How To Install QEMU Guest Agent On pfSense VM In Proxmox https://youtu.be/c88-byEL7UM 🌸How To Install The world's most popular workflow automation platform n8n On Proxmox https://youtu.be/J1cpJRuTHwE 🌸How To Setup Notifications On Uptime Kuma a Self Hosted Monitoring Application https://youtu.be/Cp-rAatifMk 🌸How To Install Uptime Kuma a Self Hosted Monitoring Application on Proxmox https://youtu.be/cCxgkHd0E9Y 🌸How To Install Vyos an Amazing Open Source Router On Proxmox https://youtu.be/dscAQIoDU7w 🌸How To Install an SSL Certificate on Proxmox https://youtu.be/lCkrsaDEiT4 🌸 How To Lower The Power Use of Proxmox Server https://youtu.be/FJiEeHmiiH0 🌸 How To Install Packages on Proxmox VM with Terraform https://youtu.be/RRJrLTeU67Y *********************************************************************** #NixOS #proxmox #linux

Comment