system/machines/asus-gl553vd/default.nix

58 lines
1.1 KiB
Nix
Raw Normal View History

2022-09-25 23:38:57 +03:00
{ config, pkgs, lib, ... }:
{
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
2022-10-12 02:56:07 +03:00
../modules/common.nix
../modules/sound.nix
../modules/window_manager.nix
../modules/fonts.nix
../modules/gnupg.nix
../modules/nix.nix
2022-10-19 19:17:37 +03:00
../modules/networking.secret.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 = {
2022-10-13 23:11:12 +03:00
systemd-boot = {
enable = true;
configurationLimit = 10;
};
2022-10-08 22:45:35 +03:00
efi.canTouchEfiVariables = true;
2022-09-25 23:38:57 +03:00
};
networking = {
hostName = "laptop"; # Define your hostname.
2022-10-12 02:56:07 +03:00
useDHCP = false;
2022-09-25 23:38:57 +03:00
interfaces = {
enp3s0.useDHCP = true;
wlp2s0.useDHCP = true;
};
2022-10-12 02:56:07 +03:00
networkmanager.enable = true;
2022-09-25 23:38:57 +03:00
};
2022-10-03 13:04:35 +03:00
# enable bluetooth
hardware.bluetooth.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;
touchpad = {
accelSpeed = "0.5";
2022-10-03 13:04:35 +03:00
disableWhileTyping = true;
};
};
2022-10-12 02:56:07 +03:00
# Enable the Docker
virtualisation.docker.enable = true;
2022-10-13 07:47:31 +03:00
local.nix.enableMyRegistry = true;
2022-09-25 23:38:57 +03:00
}