nixos-config/hosts/nixos-home/configuration.nix
2026-08-13 12:13:39 +02:00

57 lines
1.9 KiB
Nix

{ inputs, ... }:
{
imports = [
# généré à l'installation avec nixos-generate-config
# à copier dans le dossier courant depuis /etc/nixos
./hardware-configuration.nix
# machine spécifique
./config/boot.nix
./config/drivers_video.nix
./config/power_management.nix
./config/system.nix
./coonfig/memory.nix
# ensemble de packages et configurations système
../common/basesystem/bluetooth.nix
../common/basesystem/language.nix
../common/basesystem/system_saves.nix
../common/basesystem/users.nix
# style
../common/style/fonts.nix
../common/style/stylix.nix
# additional services
../common/services/gnome-keyring.nix
../common/services/mullvad.nix
../common/services/openconnect.nix
../common/services/sound.nix
../common/services/greetd.nix
../common/services/protonmail.nix
# programs
../common/programs/gamescope.nix
../common/programs/steam.nix
# packages & others
../common/niri.nix
../common/hyprland.nix
../common/wayland.nix
../common/system_packages.nix
# profil nixos pour mon ordi portable maison
# nécessite l'input nixos-hardware dans flake.nix.
inputs.nixos-hardware.nixosModules.common-cpu-intel # active le microcode intel, KMS pour GPU intégré, etc...
inputs.nixos-hardware.nixosModules.common-pc-laptop # active tlp
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd # active le TRIM périodique pour le SSD
];
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.overlays = [
(final: prev: {
streamlink = prev.streamlink.overridePythonAttrs (old: {
doCheck = false;
});
})
];
}