nixos/hosts/perso-desktop/configuration.nix

56 lines
1.2 KiB
Nix
Raw Normal View History

2024-02-19 19:34:50 +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).
2025-01-03 23:51:19 +01:00
{ lib, ... }:
2024-02-19 19:34:50 +01:00
{
imports =
[
../../modules/system
2024-05-07 17:55:36 +02:00
2024-02-19 19:34:50 +01:00
# Include the results of the hardware scan.
./hardware-configuration.nix
2025-01-29 22:15:35 +01:00
./disko-config.nix
2024-02-19 19:34:50 +01:00
];
# Bootloader.
2025-02-01 16:39:00 +01:00
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.lanzaboote = {
enable = true;
pkiBundle = "/var/lib/sbctl";
};
2024-02-19 19:34:50 +01:00
boot.loader.efi.canTouchEfiVariables = true;
# Limit the number of generations to keep
boot.loader.systemd-boot.configurationLimit = 10;
# boot.loader.grub.configurationLimit = 10;
2024-02-19 19:34:50 +01:00
networking.hostName = "nixos-desktop-perso"; # Define your hostname.
modules.system = {
apps = {
2024-10-25 14:46:24 +02:00
flatpak.enable = true;
steam.enable = true;
2025-01-11 15:25:39 +01:00
qemu.enable = true;
};
boot.plymouth.enable = true;
desktop = {
plasma = {
enable = true;
};
};
hardware = {
bluetooth.enable = true;
gamingKernel.enable = true;
keymaps.layout = "us";
graphics.nvidia.enable = true;
audio.pipewire.enable = true;
printing.enable = true;
2024-06-04 21:14:48 +02:00
};
};
2024-02-19 19:34:50 +01:00
}