nix-system/os/basado/configuration.nix
ant 632061ac61
Some checks failed
/ build-all (push) Failing after 57s
reorganise code: os modules in flake.nix
2026-03-12 22:40:38 +01:00

126 lines
3.5 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.

{ config, pkgs, ... }:
{
boot.loader = {
grub = {
enable = true;
efiSupport = true;
device = "nodev";
configurationLimit = 20;
};
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
};
hardware.bluetooth.enable = true; # enables support for Bluetooth
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
boot.kernelParams = [ "quiet" "amd_iommu=on" ];
boot.supportedFilesystems = [ "ntfs" ];
networking.hostName = "basado"; # Define your hostname.
users.users.ant = {
isNormalUser = true;
shell = pkgs.fish;
description = "ant";
extraGroups =
[ "networkmanager" "wheel" "video" "libvirtd" "msr" "docker" "gamemode" ];
packages = with pkgs; [ ];
};
users.users.anvaure = {
isNormalUser = true;
shell = pkgs.fish;
extraGroups =
[ "networkmanager" "video" "libvirtd" "msr" "docker" ];
packages = with pkgs; [ ];
};
fileSystems."/home/ant/disk1" = {
device = "/dev/disk/by-uuid/3c0cd1c9-a7d1-4e6b-834a-297a0c10f11a";
fsType = "ext4";
};
fileSystems."/home/ant/disk2" = {
device = "/dev/disk/by-uuid/519c0a56-fab0-408e-bc8f-23f63ad618c7";
fsType = "ext4";
};
# NVIDIA
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.beta;
modesetting.enable = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
open = true;
nvidiaSettings = false;
};
services.openssh = {
enable = true;
settings.X11Forwarding = true;
settings.PasswordAuthentication = false;
openFirewall = true;
};
virtualisation.docker = { enable = true; };
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;
# services.llama-cpp = {
# package = pkgs-unstable.llama-cpp-vulkan;
# enable = true;
# port = 8182;
# model = "/home/ant/models/Qwen3-4B-Instruct-2507-UD-Q8_K_XL.gguf";
# extraFlags = [
# "-fa" "on"
# "--jinja"
# "--cache-reuse" "256"
# "--reasoning-format" "auto"
# "--ctx-size" "16384"
# "--n-gpu-layers" "999"
# "--cache-type-k" "q4_0"
# "--cache-type-v" "q4_0"
# "--n-cpu-moe" "25"
# ];
# };
# systemd.services.llama-cpp = {
# environment.XDG_CACHE_HOME = "/var/cache/llama.cpp";
# serviceConfig.CacheDirectory = "llama.cpp";
# };
# services.ollama = {
# enable = true;
# acceleration = "cuda";
# };
# services.open-webui = {
# enable = true;
# };
services.immich.enable = true;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment?
# services.udev.packages = [
# pkgs.android-udev-rules
# ];
nix.distributedBuilds = true;
nix.settings.builders-use-substitutes = true;
nix.buildMachines = [
{
hostName = "192.168.1.5";
protocol = "ssh-ng";
sshUser = "remotebuild";
sshKey = "/home/ant/.ssh/id_ed25519";
system = pkgs.stdenv.hostPlatform.system;
supportedFeatures = [ "nixos-test" "big-parallel" "kvm" "gccarch-x86-64-v3" ];
}
];
}