nixos-config/machines/odin/configuration.nix
2023-04-13 08:39:41 +02:00

70 lines
1.3 KiB
Nix

{ nixos-hardware, disko, ... }:
{
imports = [
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;
};
libvirtd.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" "virtio_blk" "virtio_pci" ];
kernelModules = [ "kvm-intel" "kvm-amd" ];
};
kernelModules = [ "kvm-intel" "kvm-amd" ];
};
hardware.enableAllFirmware = true;
powerManagement.cpuFreqGovernor = "ondemand";
services.cockpit = {
enable = true;
settings = {
WebService = {
Origins = [ "https://cockpit.datarift.nl" ];
ProtocolHeader = "X-Forwarded-Proto";
ForwardedForHeader = "X-Forwarded-For";
};
};
};
services.lvm = {
enable = true;
};
system.stateVersion = "23.05";
}