Erwin Boskma
3ecb99ac34
There are suggestions to add a way to set the order without the need to prefix attribute names. See https://github.com/nix-community/disko/issues/80
65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{ nixos-hardware, disko, ... }:
|
|
{ modulesPath, ... }:
|
|
{
|
|
imports = [
|
|
"${modulesPath}/virtualisation/qemu-guest-agent.nix"
|
|
|
|
nixos-hardware.nixosModules.common-cpu-intel
|
|
nixos-hardware.nixosModules.common-pc-ssd
|
|
|
|
disko.nixosModules.disko
|
|
|
|
./storage.nix
|
|
../../users/erwin
|
|
../../users/root
|
|
];
|
|
|
|
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;
|
|
};
|
|
|
|
services.lvm = {
|
|
enable = true;
|
|
};
|
|
|
|
system.stateVersion = "23.05";
|
|
}
|