dotfiles/configs/thilo-laptop/nixos.nix

76 lines
1.5 KiB
Nix
Raw Normal View History

2024-02-27 02:54:02 +01:00
{ pkgs, ... }:
2023-11-06 23:43:36 +01:00
{
2024-02-27 02:54:02 +01:00
imports = [ # Include the results of the hardware scan.
./hardware-configuration.nix
./../../nixos/common.nix
2024-03-15 14:42:02 +01:00
./../../nixos/builders.nix
2024-02-27 02:54:02 +01:00
];
2023-11-06 23:43:36 +01:00
# Bootloader.
2024-02-27 02:54:02 +01:00
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
2023-11-06 23:43:36 +01:00
# Setup keyfile
2024-02-27 02:54:02 +01:00
boot.initrd.secrets = { "/crypto_keyfile.bin" = null; };
2023-11-06 23:43:36 +01:00
networking.hostName = "thilo-laptop"; # Define your hostname.
# Configure console keymap
console.keyMap = "de";
2024-02-27 02:54:02 +01:00
environment.gnome.excludePackages = with pkgs; [ tracker tracker-miners ];
2023-11-06 23:43:36 +01:00
2023-11-11 21:52:08 +01:00
hardware.bluetooth.enable = true;
2023-11-06 23:43:36 +01:00
services = {
xserver = {
enable = true;
2023-11-11 21:52:08 +01:00
displayManager.sddm.enable = true;
2024-03-18 15:43:15 +01:00
xkb = {
variant = "";
layout = "us";
};
2023-11-06 23:43:36 +01:00
};
gnome = {
tracker-miners.enable = false;
tracker.enable = false;
};
2023-11-11 21:52:08 +01:00
blueman.enable = true;
fwupd.enable = true;
desktopManager.plasma6.enable = true;
2023-11-06 23:43:36 +01:00
};
2024-03-01 22:48:16 +01:00
programs.kdeconnect.enable = true;
2024-03-20 02:22:02 +01:00
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"
];
};
2024-02-27 02:54:02 +01:00
environment.systemPackages = with pkgs; [ brlaser brgenml1lpr ];
2024-02-22 16:38:29 +01:00
2024-03-15 15:12:33 +01:00
nixpkgs.config.permittedInsecurePackages = [
"nix-2.16.2"
];
2023-11-06 23:43:36 +01:00
system.stateVersion = "23.05";
}