odin: enable libvirt and cockpit

This commit is contained in:
Erwin Boskma 2023-04-07 10:10:53 +02:00
parent bdb4b71d84
commit 75e85c1d5d
Signed by: erwin
SSH key fingerprint: SHA256:Vw4O4qA0i5x65Y7yyjDpWDCSMSXAhqT4X7cJ3frdnLY

View file

@ -1,9 +1,6 @@
{ nixos-hardware, disko, ... }: { nixos-hardware, disko, ... }:
{ modulesPath, ... }:
{ {
imports = [ imports = [
"${modulesPath}/virtualisation/qemu-guest-agent.nix"
nixos-hardware.nixosModules.common-cpu-intel nixos-hardware.nixosModules.common-cpu-intel
nixos-hardware.nixosModules.common-pc-ssd nixos-hardware.nixosModules.common-pc-ssd
@ -28,7 +25,7 @@
remote-builders = true; remote-builders = true;
}; };
# libvirt.enable = true; libvirt.enable = true;
systemd.enable = true; systemd.enable = true;
}; };
@ -54,8 +51,15 @@
hardware.enableAllFirmware = true; hardware.enableAllFirmware = true;
powerManagement.cpuFreqGovernor = "ondemand"; powerManagement.cpuFreqGovernor = "ondemand";
services.qemuGuest = { services.cockpit = {
enable = true; enable = true;
settings = {
WebService = {
Origins = [ "https://cockpit.datarift.nl" ];
ProtocolHeader = "X-Forwarded-Proto";
ForwardedForHeader = "X-Forwarded-For";
};
};
}; };
services.lvm = { services.lvm = {