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.
32 lines
865 B
Nix
32 lines
865 B
Nix
# This file should be generated by running:
|
|
# nixos-generate-config --show-hardware-config > hardware-configuration.nix
|
|
#
|
|
# Run this command on your NixOS machine 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
|
|
# hardware.cpu.intel.updateMicrocode = true;
|
|
# hardware.cpu.amd.updateMicrocode = true;
|
|
}
|