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’).
|
2024-02-27 02:54:02 +01:00
|
|
|
|
{ pkgs, ... }:
|
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
|
2023-10-28 23:16:29 +02:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Bootloader.
|
2024-02-27 02:54:02 +01:00
|
|
|
|
boot = {
|
|
|
|
|
loader = {
|
|
|
|
|
systemd-boot = {
|
|
|
|
|
enable = true;
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
|
${pkgs.gnused}/bin/sed -i "/default/c\default @saved" /boot/loader/loader.conf
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
|
};
|
|
|
|
|
kernelPackages = pkgs.linuxPackages_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'';
|
|
|
|
|
};
|
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 = {
|
|
|
|
|
xserver = {
|
|
|
|
|
enable = true;
|
|
|
|
|
displayManager.sddm.enable = true;
|
2024-02-29 19:14:22 +01:00
|
|
|
|
displayManager.defaultSession = "plasma";
|
|
|
|
|
desktopManager.plasma6.enable = true;
|
2023-10-28 23:16:29 +02:00
|
|
|
|
layout = "us";
|
|
|
|
|
xkbVariant = "";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2024-03-04 02:10:30 +01:00
|
|
|
|
programs.kdeconnect.enable = true;
|
|
|
|
|
programs.nix-ld.enable = true;
|
|
|
|
|
|
2023-11-14 02:40:28 +01:00
|
|
|
|
hardware.opengl = {
|
2024-02-27 02:54:02 +01:00
|
|
|
|
extraPackages = with pkgs; [ vaapiVdpau libvdpau-va-gl ];
|
2023-11-14 02:40:28 +01:00
|
|
|
|
};
|
|
|
|
|
|
2023-10-28 23:16:29 +02:00
|
|
|
|
system.stateVersion = "23.05";
|
|
|
|
|
}
|