Hardware/Microsoft/Surface Go 2: Difference between revisions
Inital page |
Add setup instructions |
||
Line 25: | Line 25: | ||
== Setup == | == Setup == | ||
Support for webcam and LTE modem requires a custom kernel from the linux-surface project. | Support for webcam and LTE modem requires a custom kernel from the [https://github.com/linux-surface/linux-surface linux-surface] project. Adapt the <code>flake.nix</code> of your system configuration to include the [https://github.com/NixOS/nixos-hardware nixos-hardware repository] and the specific module for your device: <code>nixos-hardware.nixosModules.microsoft-surface-go</code>.<syntaxhighlight lang="nix"> | ||
{ | |||
description = "NixOS configuration with flakes"; | |||
inputs.nixos-hardware.url = "github:NixOS/nixos-hardware/master"; | |||
outputs = { self, nixpkgs, nixos-hardware }: { | |||
# replace <your-hostname> with your actual hostname | |||
nixosConfigurations.<your-hostname> = nixpkgs.lib.nixosSystem { | |||
# ... | |||
modules = [ | |||
# ... | |||
nixos-hardware.nixosModules.microsoft-surface-go | |||
]; | |||
}; | |||
}; | |||
} | |||
</syntaxhighlight> |