Prepare for pro laptop
This commit is contained in:
parent
9256b08843
commit
fa161db05d
3 changed files with 85 additions and 0 deletions
44
hosts/pro-laptop/default.nix
Normal file
44
hosts/pro-laptop/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
../../modules/linux_gaming.nix
|
||||
../../modules/system.nix
|
||||
../../modules/network.nix
|
||||
../../modules/nvidia.nix
|
||||
../../modules/plasma.nix
|
||||
../../modules/keymaps/fr.nix
|
||||
../../modules/bluetooth.nix
|
||||
../../modules/pipewire.nix
|
||||
../../modules/plymouth.nix
|
||||
|
||||
../../modules # Import optional configuration
|
||||
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "nixos-laptop-pro"; # Define your hostname.
|
||||
|
||||
hardware.nvidia.prime = {
|
||||
offload = {
|
||||
enable = true;
|
||||
enableOffloadCmd = true;
|
||||
};
|
||||
|
||||
# Make sure to use the correct Bus ID values for your system!
|
||||
# information bus: pci@0000:00:02.0
|
||||
intelBusId = "PCI:0:2:0";
|
||||
# information bus: pci@0000:01:00.0
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue