nixos/hosts/perso-laptop/configuration.nix

57 lines
1.2 KiB
Nix
Raw Permalink 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).
2024-10-28 21:20:06 +01:00
{ ... }:
2024-02-02 21:07:29 +01:00
{
imports =
[
../../modules/system
2024-05-07 17:55:36 +02:00
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 = {
2024-05-06 19:02:28 +02:00
enable = true;
enableOffloadCmd = true;
};
# Make sure to use the correct Bus ID values for your system!
2024-02-12 14:11:22 +01:00
# information bus: pci@0000:00:02.0
2024-05-06 19:02:28 +02:00
intelBusId = "PCI:0:2:0";
2024-02-12 14:11:22 +01:00
# information bus: pci@0000:01:00.0
2024-05-06 19:02:28 +02:00
nvidiaBusId = "PCI:1:0:0";
};
2024-05-07 17:55:36 +02:00
modules.system = {
2024-10-25 14:46:24 +02:00
apps = {
2024-12-22 23:26:35 +01:00
steam.enable = true;
2024-10-25 14:46:24 +02:00
flatpak.enable = true;
};
desktop = {
plasma.enable = true;
};
hardware = {
bluetooth.enable = true;
gamingKernel.enable = true;
keymaps.layout = "fr";
nvidia.enable = true;
pipewire.enable = true;
plymouth.enable = true;
printing.enable = true;
waydroid.enable = true;
};
};
2024-02-02 21:07:29 +01:00
}