nixos/hosts/perso-desktop/configuration.nix
Florian RICHER f595f1827c
All checks were successful
check / check (push) Successful in 2m0s
perso-desktop: Enable ollama
2025-04-02 21:09:47 +02:00

73 lines
1.7 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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).
{ pkgs, lib, ... }:
{
imports =
[
../../modules/system
# Include the results of the hardware scan.
./hardware-configuration.nix
./disko-config.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.lanzaboote = {
enable = true;
pkiBundle = "/var/lib/sbctl";
};
boot.loader.efi.canTouchEfiVariables = true;
# Limit the number of generations to keep
boot.loader.systemd-boot.configurationLimit = 10;
# boot.loader.grub.configurationLimit = 10;
networking.hostName = "nixos-desktop-perso"; # Define your hostname.
modules.system = {
apps = {
flatpak.enable = true;
steam.enable = true;
qemu.enable = true;
lutris.enable = true;
};
boot.plymouth.enable = true;
desktop = {
plasma = {
enable = true;
};
};
hardware = {
bluetooth.enable = true;
gamingKernel.enable = true;
keymaps.layout = "us";
graphics.amdgpu.enable = true;
audio.pipewire.enable = true;
printing.enable = true;
};
services = {
docker.enable = true;
ollama.enable = true;
};
};
services.hardware.openrgb = {
enable = true;
package = pkgs.openrgb-with-all-plugins;
};
# Revert to RADV when this https://gitlab.freedesktop.org/mesa/mesa/-/issues/12865 is resolved
chaotic.mesa-git = {
enable = true;
extraPackages = with pkgs; [ rocmPackages.clr.icd amdvlk ];
extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ];
};
}