nixos-config/common/laptop-things.nix

41 lines
793 B
Nix

{ config, pkgs, lib, ... }:
{
imports = [
./user-facing.nix
];
hardware.bluetooth.enable = true; # enables support for Bluetooth
services = {
logind = {
extraConfig = "HandlePowerKey=suspend";
lidSwitch = "suspend";
};
# Configure keymap in X11
xserver = {
layout = lib.mkForce "neo_dvorak,us";
xkbOptions = "grp:ctrls_toggle";
xkb = {
extraLayouts = {
neo_dvorak = {
description = "Dvorak with Neo2 Extensions";
symbolsFile = ../res/xkb/symbols/neo_dvorak;
languages = [ "eng" ];
};
};
};
};
};
# Configure console keymap
console.keyMap = "dvorak";
environment.systemPackages = with pkgs; [
brightnessctl
remmina
acpi
];
}