Expose templates.default — a starter flake that consumes OmniXY as an input (dependency model): omnixy.lib.mkSystem + nixosModules.omnixy + a placeholder host. Lets adopters track OmniXY with `nix flake update` instead of forking. See templates/default/README.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
43 lines
1 KiB
Nix
43 lines
1 KiB
Nix
# PLACEHOLDER hardware scan — REPLACE before building on real hardware:
|
|
# sudo nixos-generate-config --show-hardware-config > hardware-configuration.nix
|
|
#
|
|
# This generic stub only lets the template evaluate. The by-label devices
|
|
# below will NOT match your machine — a real scan captures your actual
|
|
# disks, filesystems, kernel modules, and CPU microcode.
|
|
#
|
|
# hostPlatform is set by Omnixient's mkSystem; the bootloader (systemd-boot)
|
|
# by Omnixient core — so this file only needs filesystems.
|
|
{
|
|
config,
|
|
lib,
|
|
modulesPath,
|
|
...
|
|
}:
|
|
{
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
|
|
|
boot.initrd.availableKernelModules = [
|
|
"xhci_pci"
|
|
"nvme"
|
|
"ahci"
|
|
"usbhid"
|
|
"sd_mod"
|
|
];
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.kernelModules = [ ];
|
|
boot.extraModulePackages = [ ];
|
|
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-label/nixos";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
fileSystems."/boot" = {
|
|
device = "/dev/disk/by-label/boot";
|
|
fsType = "vfat";
|
|
};
|
|
|
|
swapDevices = [ ];
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
}
|