summaryrefslogtreecommitdiff
path: root/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'configuration.nix')
-rw-r--r--configuration.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/configuration.nix b/configuration.nix
index 5b6a82e..37bdd8b 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -16,6 +16,28 @@
boot.kernelPackages = pkgs.linuxPackages_latest;
+ hardware.bluetooth = {
+ enable = true;
+ powerOnBoot = true;
+ settings = {
+ General = {
+ # Shows battery charge of connected devices on supported
+ # Bluetooth adapters. Defaults to 'false'.
+ Experimental = true;
+ # When enabled other devices can connect faster to us, however
+ # the tradeoff is increased power consumption. Defaults to
+ # 'false'.
+ FastConnectable = true;
+ };
+ Policy = {
+ # Enable all controllers when they are found. This includes
+ # adapters present on start as well as adapters that are plugged
+ # in later on. Defaults to 'true'.
+ AutoEnable = true;
+ };
+ };
+ };
+
networking.hostName = "anand-mini";
networking.extraHosts = ''
192.168.1.26 homelab
@@ -51,6 +73,7 @@
nixpkgs.config.allowUnfree = true;
+ services.blueman.enable = true;
services.logind.settings.Login = {
HandlePowerKey = "ignore";
LidSwitchIgnoreInhibited = "no";