dotfiles/configs/thilo-pc/nixos.nix

48 lines
1.1 KiB
Nix
Raw Normal View History

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).
{ config
, pkgs
, lib
, ...
}:
{
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.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.systemd-boot.extraInstallCommands = ''
${pkgs.gnused}/bin/sed -i "/default/c\default @saved" /boot/loader/loader.conf
'';
2023-11-16 19:19:04 +01:00
boot.kernelPackages = pkgs.linuxPackages_latest;
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;
2023-10-30 23:12:09 +01:00
displayManager.defaultSession = "plasmawayland";
2023-10-28 23:16:29 +02:00
desktopManager.plasma5.enable = true;
layout = "us";
xkbVariant = "";
};
};
2023-11-14 02:40:28 +01:00
hardware.opengl = {
extraPackages = with pkgs; [
vaapiVdpau
libvdpau-va-gl
];
};
2023-10-28 23:16:29 +02:00
system.stateVersion = "23.05";
}