nyx/systems/theia/overrides.nix

54 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2025-01-12 20:44:11 +00:00
{
lib,
pkgs,
config,
modulesPath,
...
}: let
inherit (lib.modules) mkForce;
in {
imports = [(modulesPath + "/profiles/qemu-guest.nix")];
config = {
services = {
smartd.enable = mkForce false; # Unavailable - device lacks SMART capability.
qemuGuest.enable = true;
};
systemd.services.qemu-guest-agent.path = [pkgs.shadow];
system.stateVersion = mkForce "25.04";
boot = {
kernelParams = ["net.ifnames=0"];
kernel.sysctl = {
"net.ipv4.ip_forward" = true;
"net.ipv6.conf.all.forwarding" = true;
};
initrd = {
availableKernelModules = [
"ata_piix"
"uhci_hcd"
"virtio_pci"
"virtio_scsi"
"ahci"
"sr_mod"
"virtio_blk"
];
kernelModules = ["dm-snapshot"];
};
loader.grub = {
enable = true;
useOSProber = mkForce false;
efiSupport = mkForce false;
enableCryptodisk = false;
theme = mkForce null;
backgroundColor = mkForce null;
splashImage = mkForce null;
device = mkForce "/dev/vda";
};
};
};
}