per hardware symlinks

This commit is contained in:
foosinn 2020-08-30 12:40:06 +02:00
parent 3a95b52864
commit fc21e4193c
3 changed files with 29 additions and 13 deletions

61
hardware/x360-raven.nix Normal file
View file

@ -0,0 +1,61 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, ... }:
{
imports = [
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
<nixos-hardware/common/cpu/amd>
<nixos-hardware/common/pc/laptop/acpi_call.nix>
<nixos-hardware/common/pc/laptop/ssd>
];
services.tlp.enable = true;
systemd.tmpfiles.rules = [
"w /sys/class/drm/card0/device/power_dpm_force_performance_level - - - - low"
];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
];
boot.initrd.kernelModules = [ ];
boot.extraModulePackages = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.kernelParams = [ "amdgpu.dpm=1" ];
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "raven";
networking.hostId = "e3a397c5";
networking.interfaces.wlo1.useDHCP = true;
networking.resolvconf.useLocalResolver = true;
fileSystems."/" =
{ device = "tank/root/nixos";
fsType = "zfs";
};
fileSystems."/home" =
{ device = "tank/home";
fsType = "zfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/B048-FBC8";
fsType = "vfat";
};
swapDevices = [ ];
nix.maxJobs = lib.mkDefault 8;
}