2023-10-28 23:16:29 +02: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-18 01:26:04 +01:00
|
|
|
|
{ pkgs, options, ... }:
|
2023-10-28 23:16:29 +02:00
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports = [
|
|
|
|
|
# Include the results of the hardware scan.
|
|
|
|
|
./hardware-configuration.nix
|
2023-11-11 21:52:08 +01:00
|
|
|
|
./../../nixos/common.nix
|
2024-03-15 14:42:02 +01:00
|
|
|
|
./../../nixos/builders.nix
|
2023-10-28 23:16:29 +02:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Bootloader.
|
2024-02-27 02:54:02 +01:00
|
|
|
|
boot = {
|
|
|
|
|
loader = {
|
2025-02-23 02:20:22 +01:00
|
|
|
|
grub = {
|
|
|
|
|
efiSupport = true;
|
|
|
|
|
device = "nodev";
|
2024-02-27 02:54:02 +01:00
|
|
|
|
};
|
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
|
};
|
2025-02-23 02:20:22 +01:00
|
|
|
|
kernelPackages = pkgs.linuxPackages_xanmod_latest;
|
2024-03-04 02:10:30 +01:00
|
|
|
|
binfmt.registrations.appimage = {
|
|
|
|
|
wrapInterpreterInShell = false;
|
|
|
|
|
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
|
|
|
|
|
recognitionType = "magic";
|
|
|
|
|
offset = 0;
|
|
|
|
|
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
|
|
|
|
|
magicOrExtension = ''\x7fELF....AI\x02'';
|
|
|
|
|
};
|
2025-02-23 02:20:22 +01:00
|
|
|
|
plymouth.enable = true;
|
2024-02-27 02:54:02 +01:00
|
|
|
|
};
|
2023-10-28 23:16:29 +02:00
|
|
|
|
|
|
|
|
|
networking.hostName = "thilo-pc";
|
|
|
|
|
|
|
|
|
|
# Enable the X11 windowing system.
|
|
|
|
|
services = {
|
2025-01-18 01:26:04 +01:00
|
|
|
|
xserver.enable = true;
|
|
|
|
|
displayManager.sddm.enable = true;
|
|
|
|
|
desktopManager.plasma6.enable = true;
|
|
|
|
|
xserver.xkb = {
|
|
|
|
|
layout = "us";
|
|
|
|
|
variant = "";
|
2023-10-28 23:16:29 +02:00
|
|
|
|
};
|
2025-02-07 03:01:42 +01:00
|
|
|
|
# AI
|
2025-02-23 02:20:22 +01:00
|
|
|
|
# ollama = {
|
|
|
|
|
# enable = true;
|
|
|
|
|
# acceleration = "rocm";
|
|
|
|
|
# };
|
|
|
|
|
# open-webui = {
|
|
|
|
|
# enable = true;
|
|
|
|
|
# };
|
2023-10-28 23:16:29 +02:00
|
|
|
|
};
|
|
|
|
|
|
2024-03-04 02:10:30 +01:00
|
|
|
|
programs.kdeconnect.enable = true;
|
2025-01-18 01:26:04 +01:00
|
|
|
|
programs.nix-ld = {
|
|
|
|
|
enable = true;
|
2025-01-18 01:26:41 +01:00
|
|
|
|
libraries =
|
|
|
|
|
(pkgs.steam-run.args.multiPkgs pkgs)
|
|
|
|
|
++ (with pkgs; [
|
|
|
|
|
nss
|
|
|
|
|
sane-backends
|
|
|
|
|
nspr
|
|
|
|
|
zlib
|
|
|
|
|
libglvnd
|
|
|
|
|
qt5.qtbase
|
|
|
|
|
qt5.qtsvg
|
|
|
|
|
qt5.qtdeclarative
|
|
|
|
|
qt5.qtwayland
|
|
|
|
|
pkcs11helper
|
|
|
|
|
stdenv.cc.cc
|
|
|
|
|
freetype
|
2025-01-18 01:26:04 +01:00
|
|
|
|
|
2025-01-18 01:26:41 +01:00
|
|
|
|
stdenv.cc.cc
|
2025-01-18 01:26:04 +01:00
|
|
|
|
openssl
|
|
|
|
|
xorg.libXcomposite
|
|
|
|
|
xorg.libXtst
|
|
|
|
|
xorg.libXrandr
|
|
|
|
|
xorg.libXext
|
|
|
|
|
xorg.libX11
|
|
|
|
|
xorg.libXfixes
|
|
|
|
|
libGL
|
|
|
|
|
libva
|
|
|
|
|
xorg.libxcb
|
|
|
|
|
xorg.libXdamage
|
|
|
|
|
xorg.libxshmfence
|
|
|
|
|
xorg.libXxf86vm
|
|
|
|
|
libelf
|
|
|
|
|
glib
|
|
|
|
|
gtk3
|
|
|
|
|
bzip2
|
|
|
|
|
xorg.libXinerama
|
|
|
|
|
xorg.libXcursor
|
|
|
|
|
xorg.libXrender
|
|
|
|
|
xorg.libXScrnSaver
|
|
|
|
|
xorg.libXi
|
|
|
|
|
xorg.libSM
|
|
|
|
|
xorg.libICE
|
|
|
|
|
gnome2.GConf
|
|
|
|
|
nspr
|
|
|
|
|
nss
|
|
|
|
|
cups
|
|
|
|
|
libcap
|
|
|
|
|
SDL2
|
|
|
|
|
libusb1
|
|
|
|
|
dbus-glib
|
|
|
|
|
ffmpeg
|
|
|
|
|
libudev0-shim
|
|
|
|
|
xorg.libXt
|
|
|
|
|
xorg.libXmu
|
|
|
|
|
libogg
|
|
|
|
|
libvorbis
|
|
|
|
|
SDL
|
|
|
|
|
SDL2_image
|
|
|
|
|
glew110
|
|
|
|
|
libidn
|
|
|
|
|
tbb
|
|
|
|
|
flac
|
|
|
|
|
freeglut
|
|
|
|
|
libjpeg
|
|
|
|
|
libpng
|
|
|
|
|
libpng12
|
|
|
|
|
libsamplerate
|
|
|
|
|
libmikmod
|
|
|
|
|
libtheora
|
|
|
|
|
libtiff
|
|
|
|
|
pixman
|
|
|
|
|
speex
|
|
|
|
|
SDL_image
|
2025-02-07 03:01:42 +01:00
|
|
|
|
# SDL_ttf
|
2025-01-18 01:26:04 +01:00
|
|
|
|
SDL_mixer
|
2025-02-07 03:01:42 +01:00
|
|
|
|
# SDL2_ttf
|
2025-01-18 01:26:04 +01:00
|
|
|
|
SDL2_mixer
|
|
|
|
|
libappindicator-gtk2
|
|
|
|
|
libdbusmenu-gtk2
|
|
|
|
|
libindicator-gtk2
|
|
|
|
|
libcaca
|
|
|
|
|
libcanberra
|
|
|
|
|
libgcrypt
|
|
|
|
|
libvpx
|
|
|
|
|
librsvg
|
|
|
|
|
xorg.libXft
|
|
|
|
|
libvdpau
|
|
|
|
|
pango
|
|
|
|
|
cairo
|
|
|
|
|
atk
|
|
|
|
|
gdk-pixbuf
|
|
|
|
|
fontconfig
|
|
|
|
|
freetype
|
|
|
|
|
dbus
|
|
|
|
|
alsa-lib
|
|
|
|
|
expat
|
|
|
|
|
libdrm
|
|
|
|
|
mesa
|
|
|
|
|
libxkbcommon
|
2025-01-18 01:26:41 +01:00
|
|
|
|
]);
|
2025-01-18 01:26:04 +01:00
|
|
|
|
};
|
2024-03-04 02:10:30 +01:00
|
|
|
|
|
2025-01-18 01:30:39 +01:00
|
|
|
|
hardware.graphics = {
|
2024-05-28 14:38:22 +02:00
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
|
vaapiVdpau
|
|
|
|
|
libvdpau-va-gl
|
|
|
|
|
];
|
2023-11-14 02:40:28 +01:00
|
|
|
|
};
|
2025-01-18 01:30:39 +01:00
|
|
|
|
|
2024-03-21 02:01:24 +01:00
|
|
|
|
hardware.bluetooth.enable = true;
|
2025-02-23 02:20:22 +01:00
|
|
|
|
hardware.bluetooth.powerOnBoot = true;
|
2023-11-14 02:40:28 +01:00
|
|
|
|
|
2024-03-18 15:43:15 +01:00
|
|
|
|
programs.steam.gamescopeSession = {
|
2025-01-18 01:26:04 +01:00
|
|
|
|
enable = false;
|
2024-03-21 02:01:24 +01:00
|
|
|
|
env = {
|
|
|
|
|
WLR_RENDERER = "vulkan";
|
|
|
|
|
DXVK_HDR = "1";
|
|
|
|
|
STEAM_GAMESCOPE_VRR_SUPPORTED = "1";
|
|
|
|
|
SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS = "0";
|
|
|
|
|
ENABLE_GAMESCOPE_WSI = "1";
|
|
|
|
|
WINE_FULLSCREEN_FSR = "1";
|
|
|
|
|
};
|
2024-03-18 15:43:15 +01:00
|
|
|
|
args = [
|
2024-03-21 02:01:24 +01:00
|
|
|
|
"-f"
|
|
|
|
|
"-F fsr"
|
|
|
|
|
"--rt"
|
|
|
|
|
"--adaptive-sync"
|
|
|
|
|
"-w 1920"
|
|
|
|
|
"-h 1080"
|
|
|
|
|
"-r 120"
|
|
|
|
|
"--hdr-enabled"
|
|
|
|
|
"--hdr-itm-enable"
|
|
|
|
|
"-O DP-3"
|
2024-03-18 15:43:15 +01:00
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
2025-02-23 02:20:22 +01:00
|
|
|
|
programs.gamescope.enable = true;
|
|
|
|
|
|
2025-01-18 01:26:04 +01:00
|
|
|
|
system.stateVersion = "24.11";
|
2025-02-23 02:20:22 +01:00
|
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
kdePackages.skanpage
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
services.resolved = {
|
|
|
|
|
enable = true;
|
|
|
|
|
domains = [ "~." ];
|
|
|
|
|
};
|
2023-10-28 23:16:29 +02:00
|
|
|
|
}
|