mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2024-11-14 04:48:50 +01:00
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
# 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
|
||
./../../nixos/common.nix
|
||
];
|
||
|
||
# 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
|
||
'';
|
||
|
||
networking.hostName = "thilo-pc";
|
||
|
||
# Enable the X11 windowing system.
|
||
services = {
|
||
xserver = {
|
||
enable = true;
|
||
displayManager.sddm.enable = true;
|
||
displayManager.defaultSession = "plasmawayland";
|
||
desktopManager.plasma5.enable = true;
|
||
layout = "us";
|
||
xkbVariant = "";
|
||
};
|
||
};
|
||
|
||
hardware.opengl = {
|
||
extraPackages = with pkgs; [
|
||
vaapiVdpau
|
||
libvdpau-va-gl
|
||
];
|
||
};
|
||
|
||
system.stateVersion = "23.05";
|
||
}
|