nixos-config/machines/odin/configuration.nix

71 lines
1.3 KiB
Nix
Raw Normal View History

2023-01-17 13:45:37 +01:00
{ nixos-hardware, disko, ... }:
{
imports = [
nixos-hardware.nixosModules.common-cpu-intel
nixos-hardware.nixosModules.common-pc-ssd
disko.nixosModules.disko
./storage.nix
2023-01-17 14:09:13 +01:00
../../users/erwin
../../users/root
2023-01-17 13:45:37 +01:00
];
eboskma = {
users.erwin = {
enable = true;
};
base = {
plymouth.enable = true;
};
nix-common = {
enable = true;
remote-builders = true;
};
2023-04-07 10:10:53 +02:00
libvirt.enable = true;
2023-01-17 13:45:37 +01:00
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" ];
2023-01-17 13:45:37 +01:00
};
kernelModules = [ "kvm-intel" "kvm-amd" ];
2023-01-17 13:45:37 +01:00
};
hardware.enableAllFirmware = true;
powerManagement.cpuFreqGovernor = "ondemand";
2023-01-17 13:45:37 +01:00
2023-04-07 10:10:53 +02:00
services.cockpit = {
2023-01-17 13:45:37 +01:00
enable = true;
2023-04-07 10:10:53 +02:00
settings = {
WebService = {
Origins = [ "https://cockpit.datarift.nl" ];
ProtocolHeader = "X-Forwarded-Proto";
ForwardedForHeader = "X-Forwarded-For";
};
};
2023-01-17 13:45:37 +01:00
};
services.lvm = {
enable = true;
};
system.stateVersion = "23.05";
2023-01-17 13:45:37 +01:00
}