mirror of
https://github.com/zephrynis/nix-flake.git
synced 2026-02-18 12:11:54 +00:00
Add a NixOS system configuration using flakes, supporting multiple hosts (desktop, laptop, my-machine) with shared and per-host settings. Includes Home Manager integration, user-level and system-level package management, and example hardware configuration placeholders. Provides a README with setup instructions and a .gitignore for common Nix and editor artifacts.
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
# This file should be generated by running:
|
|
# nixos-generate-config --show-hardware-config > hardware-configuration.nix
|
|
#
|
|
# Run this command on your DESKTOP to get the correct hardware configuration
|
|
# Then copy the output here.
|
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
{
|
|
imports = [ ];
|
|
|
|
# PLACEHOLDER: Replace this entire file with your actual hardware configuration
|
|
# You can generate it by running the command mentioned above on your NixOS system
|
|
|
|
boot.initrd.availableKernelModules = [ ];
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.kernelModules = [ ];
|
|
boot.extraModulePackages = [ ];
|
|
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-label/nixos";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
# Swap configuration
|
|
# swapDevices = [ ];
|
|
|
|
# CPU microcode updates (uncomment for your CPU)
|
|
# hardware.cpu.intel.updateMicrocode = true;
|
|
# hardware.cpu.amd.updateMicrocode = true;
|
|
|
|
# NVIDIA drivers (uncomment if you have an NVIDIA GPU)
|
|
# services.xserver.videoDrivers = [ "nvidia" ];
|
|
# hardware.nvidia = {
|
|
# modesetting.enable = true;
|
|
# powerManagement.enable = false;
|
|
# open = false;
|
|
# nvidiaSettings = true;
|
|
# };
|
|
}
|