nixos-config/hosts/nixos-laptop/configuration.nix
2026-07-10 13:22:08 +02:00

40 lines
1.3 KiB
Nix

{ inputs, ... }:
{
imports = [
# généré à l'installation avec nixos-generate-config
# à copier dans le dossier courant depuis /etc/nixos
./hardware-configuration.nix
# ensemble de packages et configurations système
./config/bluetooth.nix
./config/boot.nix
./config/drivers_video.nix
./config/extra-services.nix
./config/fonts.nix
./config/hyprland.nix
./config/language.nix
./config/power_management.nix
./config/sound.nix
./config/stylix.nix
./config/system_packages.nix
./config/system_saves.nix
./config/system_services.nix
./config/user.nix
# ajout pour forcer l'utilisation de cachix au max
./config/low-ram.nix
# profil nixos-hardware pour le ThinkPad E560
# nécessite l'input nixos-hardware dans flake.nix
inputs.nixos-hardware.nixosModules.common-cpu-intel # active le microcode intel
inputs.nixos-hardware.nixosModules.common-pc-laptop # active tlp
];
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
nixpkgs.config.allowUnfree = true;
# ne pas toucher, défini une seule fois en fonction de la version de nixos de l'ISO pour la 1ère installation
system.stateVersion = "25.11";
# nécessaire pour permettre des dépendances problématiques parfois
#nixpkgs.config.permittedInsecurePackages = [
# "electron-39.8.10"
#];
}