odin: enable libvirt and cockpit
This commit is contained in:
parent
bdb4b71d84
commit
75e85c1d5d
1 changed files with 9 additions and 5 deletions
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue