nixos-config/machines/odin/configuration.nix

58 lines
1,000 B
Nix
Raw Normal View History

2023-01-17 13:45:37 +01:00
{ nixos-hardware, disko, ... }:
{ modulesPath, ... }:
{
imports = [
"${modulesPath}/nixos/virtualisation/qemu-guest-agent.nix"
nixos-hardware.nixosModules.common-cpu-intel
nixos-hardware.nixosModules.common-pc-ssd
disko.nixosModules.disko
./storage.nix
];
eboskma = {
users.erwin = {
enable = true;
};
base = {
plymouth.enable = true;
};
nix-common = {
enable = true;
remote-builders = true;
};
# libvirt.enable = true;
systemd.enable = true;
};
networking.hostName = "odin";
boot = {
loader = {
systemd-boot = {
enable = true;
configurationLimit = 10;
};
efi.canTouchEfiVariables = true;
};
initrd = {
availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
kernelModules = [ ];
};
kernelModules = [ "kvm-intel" ];
};
hardware.enableAllFirmware = true;
services.qemuGuest = {
enable = true;
};
}