diff --git a/flake.nix b/flake.nix index b9587e9..ec1be2c 100644 --- a/flake.nix +++ b/flake.nix @@ -280,7 +280,7 @@ specialArgs = mkSpecialArgs system; modules = linuxOfflineGuiModules [ - ./nixos/hosts/valere.nix + ./nixos/hosts/valere ./nixos/configs/steam.nix ./nixos/configs/vmware.nix ./nixos/configs/power-saving.nix diff --git a/nixos/configs/nix.nix b/nixos/configs/nix.nix index f72639c..624c643 100644 --- a/nixos/configs/nix.nix +++ b/nixos/configs/nix.nix @@ -32,7 +32,8 @@ system = "x86_64-linux"; protocol = "ssh"; - hostName = "trailblazer.kate.tailnet.polytheon.org"; + #hostName = "trailblazer.kate.tailnet.polytheon.org"; + hostName = "100.64.0.12"; sshUser = "deprekated"; sshKey = "/home/deprekated/.ssh/id_ed25519"; diff --git a/nixos/hosts/valere/00-support-dell-smbios.patch b/nixos/hosts/valere/00-support-dell-smbios.patch new file mode 100644 index 0000000..e0e4761 --- /dev/null +++ b/nixos/hosts/valere/00-support-dell-smbios.patch @@ -0,0 +1,21 @@ +--- +v2: + - Commit message reflects Alienware devices may not necessarily support + the SMBIOS interface + - Commit message now has "Tested on" +--- + drivers/platform/x86/dell/dell-smbios-base.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/drivers/platform/x86/dell/dell-smbios-base.c b/drivers/platform/x86/dell/dell-smbios-base.c +index 73e41eb69..01c72b91a 100644 +--- a/drivers/platform/x86/dell/dell-smbios-base.c ++++ b/drivers/platform/x86/dell/dell-smbios-base.c +@@ -576,6 +576,7 @@ static int __init dell_smbios_init(void) + int ret, wmi, smm; + + if (!dmi_find_device(DMI_DEV_TYPE_OEM_STRING, "Dell System", NULL) && ++ !dmi_find_device(DMI_DEV_TYPE_OEM_STRING, "Alienware", NULL) && + !dmi_find_device(DMI_DEV_TYPE_OEM_STRING, "www.dell.com", NULL)) { + pr_err("Unable to run on non-Dell system\n"); + return -ENODEV; diff --git a/nixos/hosts/valere.nix b/nixos/hosts/valere/default.nix similarity index 94% rename from nixos/hosts/valere.nix rename to nixos/hosts/valere/default.nix index 6051f10..1284486 100644 --- a/nixos/hosts/valere.nix +++ b/nixos/hosts/valere/default.nix @@ -117,6 +117,17 @@ ]; boot.extraModulePackages = [ config.boot.kernelPackages.acpi_call ]; + # Support the Dell Privacy Driver. + boot.kernelPatches = [ { + name = "enable-dell-privacy"; + patch = ./00-support-dell-smbios.patch; + + extraStructuredConfig = with lib.kernel; { + DELL_WMI_PRIVACY = yes; + }; + + } ]; + # Support thunderbolt. services.hardware.bolt.enable = true;