mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2024-11-24 17:08:48 +01:00
88 lines
1.6 KiB
Nix
88 lines
1.6 KiB
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
# Include the results of the hardware scan.
|
|
./hardware-configuration.nix
|
|
./../../nixos/common.nix
|
|
./../../nixos/builders.nix
|
|
];
|
|
|
|
# Bootloader.
|
|
boot.loader = {
|
|
systemd-boot.enable = true;
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
boot.plymouth.enable = true;
|
|
|
|
# Setup keyfile
|
|
boot.initrd.secrets = {
|
|
"/crypto_keyfile.bin" = null;
|
|
};
|
|
|
|
networking.hostName = "thilo-laptop"; # Define your hostname.
|
|
|
|
# Configure console keymap
|
|
console.keyMap = "de";
|
|
|
|
environment.gnome.excludePackages = with pkgs; [
|
|
tracker
|
|
tracker-miners
|
|
];
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
services = {
|
|
xserver = {
|
|
enable = true;
|
|
displayManager.sddm.enable = true;
|
|
xkb = {
|
|
variant = "";
|
|
layout = "us";
|
|
};
|
|
};
|
|
gnome = {
|
|
tracker-miners.enable = false;
|
|
tracker.enable = false;
|
|
};
|
|
blueman.enable = true;
|
|
fwupd.enable = true;
|
|
desktopManager.plasma6.enable = true;
|
|
};
|
|
|
|
programs.kdeconnect.enable = true;
|
|
|
|
programs.gamescope = {
|
|
enable = true;
|
|
capSysNice = true;
|
|
};
|
|
|
|
programs.steam.gamescopeSession = {
|
|
enable = true;
|
|
env = {
|
|
STEAM_GAMESCOPE_VRR_SUPPORTED = "1";
|
|
SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS = "0";
|
|
};
|
|
args = [
|
|
"-f"
|
|
"-F fsr"
|
|
"--rt"
|
|
"--adaptive-sync"
|
|
"-O HDMI-A-1"
|
|
];
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
brlaser
|
|
brgenml1lpr
|
|
];
|
|
|
|
nixpkgs.config.permittedInsecurePackages = [ "nix-2.16.2" ];
|
|
|
|
xdg.portal = {
|
|
enable = true;
|
|
extraPortals = [ pkgs.kdePackages.xdg-desktop-portal-kde ];
|
|
};
|
|
|
|
system.stateVersion = "23.05";
|
|
}
|