40 lines
818 B
Nix
40 lines
818 B
Nix
|
#builtins.abort "Please run 'nixos-generate-config --show-hardware-config' and copy the output into hardware-configuration.nix"
|
||
|
|
||
|
# Surface Laptop Go 1st gen
|
||
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
modulesPath,
|
||
|
hostName,
|
||
|
...
|
||
|
}:
|
||
|
{
|
||
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||
|
|
||
|
boot = {
|
||
|
initrd = {
|
||
|
availableKernelModules = [ ];
|
||
|
kernelModules = [ ];
|
||
|
};
|
||
|
|
||
|
kernelModules = [ ];
|
||
|
extraModulePackages = [ ];
|
||
|
};
|
||
|
|
||
|
fileSystems = {
|
||
|
"/" = {
|
||
|
device = "/dev/sda2";
|
||
|
fsType = "btrfs";
|
||
|
options = [ "subvol=@,compress=zstd,discard" ];
|
||
|
};
|
||
|
"/boot" = {
|
||
|
device = "/dev/sda1";
|
||
|
fsType = "vfat";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
networking.useDHCP = lib.mkDefault true;
|
||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
|
}
|