nixos/hosts/perso-laptop/default.nix

43 lines
1.1 KiB
Nix
Raw Normal View History

2024-02-02 21:07:29 +01:00
# 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
2024-02-02 21:07:29 +01:00
../../modules/system.nix
2024-02-02 21:58:06 +01:00
../../modules/network.nix
2024-02-12 14:11:22 +01:00
../../modules/nvidia.nix
2024-02-02 21:58:06 +01:00
../../modules/plasma.nix
2024-02-02 21:07:29 +01:00
../../modules/keymaps/fr.nix
2024-02-19 20:24:19 +01:00
../../modules/bluetooth.nix
2024-02-02 21:07:29 +01:00
../../modules/pipewire.nix
2024-02-17 12:50:46 +01:00
../../modules/openssh.nix
../../modules/openvscode-server.nix
2024-02-02 21:07:29 +01:00
# Include the results of the hardware scan.
./hardware-configuration.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
2024-02-02 21:58:06 +01:00
networking.hostName = "nixos-laptop-perso"; # Define your hostname.
2024-02-12 14:11:22 +01:00
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";
};
2024-02-02 21:07:29 +01:00
}