system/machines/asus-gl553vd/default.nix

48 lines
919 B
Nix
Raw Normal View History

2022-09-25 23:38:57 +03:00
{ config, pkgs, lib, ... }:
let
2022-10-08 22:45:35 +03:00
secrets = import ../../secrets.nix;
2022-09-25 23:38:57 +03:00
in
{
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
2022-10-08 22:45:35 +03:00
../common.nix
2022-09-25 23:38:57 +03:00
];
2022-10-08 22:45:35 +03:00
# Use latest kernel
boot.kernelPackages = pkgs.linuxPackages_latest;
2022-09-25 23:38:57 +03:00
2022-10-08 22:45:35 +03:00
# Use the systemd-boot EFI boot loader.
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
2022-09-25 23:38:57 +03:00
};
networking = {
hostName = "laptop"; # Define your hostname.
inherit (secrets.networking) extraHosts;
interfaces = {
enp3s0.useDHCP = true;
wlp2s0.useDHCP = true;
};
};
2022-10-03 13:04:35 +03:00
# enable bluetooth
hardware.bluetooth.enable = true;
services.blueman.enable = true;
2022-10-08 22:45:35 +03:00
# configure mouse and touchpad
2022-10-03 13:04:35 +03:00
services.xserver.libinput = {
enable = true;
mouse = {
accelSpeed = "1.0";
};
touchpad = {
accelSpeed = "0.5";
2022-10-03 13:04:35 +03:00
disableWhileTyping = true;
};
};
2022-09-25 23:38:57 +03:00
}