2024-03-06 16:07:40 +01:00
|
|
|
{ pkgs, lib, config, ... }:
|
2024-01-11 13:42:31 +01:00
|
|
|
with lib;
|
2024-03-20 08:58:05 +01:00
|
|
|
with lib.metacfg;
|
2024-01-11 13:42:31 +01:00
|
|
|
{
|
2024-03-06 15:51:59 +01:00
|
|
|
imports = [ ./hardware-configuration.nix ];
|
|
|
|
|
2024-03-20 08:58:05 +01:00
|
|
|
metacfg = {
|
2024-03-06 15:51:59 +01:00
|
|
|
base.enable = true;
|
|
|
|
nix-ld.enable = true;
|
|
|
|
nix.enable = true;
|
2024-03-08 12:35:42 +01:00
|
|
|
user.extraGroups = [ "docker" "sgx" ];
|
2024-01-11 13:42:31 +01:00
|
|
|
};
|
|
|
|
|
2024-01-18 16:03:51 +01:00
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
|
2024-01-11 13:42:31 +01:00
|
|
|
system.autoUpgrade = {
|
|
|
|
enable = true;
|
2024-03-06 16:23:35 +01:00
|
|
|
operation = "switch";
|
2024-01-11 13:42:31 +01:00
|
|
|
allowReboot = true;
|
2024-01-12 14:23:32 +01:00
|
|
|
};
|
2024-01-11 13:42:31 +01:00
|
|
|
|
2024-03-06 16:16:09 +01:00
|
|
|
security.tpm2.enable = false;
|
|
|
|
security.tpm2.abrmd.enable = false;
|
2024-01-11 13:42:31 +01:00
|
|
|
|
2024-03-06 15:51:59 +01:00
|
|
|
networking.wireless.enable = false; # Enables wireless support via wpa_supplicant.
|
2024-01-11 13:42:31 +01:00
|
|
|
|
2024-03-06 15:51:59 +01:00
|
|
|
services.aesmd.enable = true;
|
2024-01-11 13:42:31 +01:00
|
|
|
|
2024-03-06 15:51:59 +01:00
|
|
|
powerManagement.cpuFreqGovernor = "ondemand";
|
2024-01-11 13:42:31 +01:00
|
|
|
|
2024-03-06 15:51:59 +01:00
|
|
|
system.stateVersion = "23.11";
|
2024-01-11 13:42:31 +01:00
|
|
|
}
|