bluetooth
This commit is contained in:
parent
d83931025b
commit
b78f561df5
4 changed files with 57 additions and 33 deletions
|
|
@ -17,7 +17,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.initrd.kernelModules = [ "amdgpu" "coretemp"];
|
boot.initrd.kernelModules = [ "amdgpu" "coretemp" ];
|
||||||
|
|
||||||
services.hardware.bolt.enable = true;
|
services.hardware.bolt.enable = true;
|
||||||
|
|
||||||
|
|
@ -51,11 +51,11 @@
|
||||||
xkb.layout = "de";
|
xkb.layout = "de";
|
||||||
xkb.variant = "";
|
xkb.variant = "";
|
||||||
enable = true;
|
enable = true;
|
||||||
dpi = 100;
|
dpi = 120;
|
||||||
|
|
||||||
displayManager = {
|
displayManager = {
|
||||||
setupCommands = ''
|
setupCommands = ''
|
||||||
${pkgs.xorg.xrandr}/bin/xrandr --output eDP-1 --dpi 240 --mode 3840x2160;
|
${pkgs.xorg.xrandr}/bin/xrandr --output eDP-1 --mode 3840x2160;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -77,6 +77,7 @@
|
||||||
|
|
||||||
services.gvfs.enable = true;
|
services.gvfs.enable = true;
|
||||||
|
|
||||||
|
# VPN services
|
||||||
services.openvpn.servers = {
|
services.openvpn.servers = {
|
||||||
KIT = {
|
KIT = {
|
||||||
autoStart = false;
|
autoStart = false;
|
||||||
|
|
@ -84,6 +85,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Bluetooth
|
||||||
|
services.blueman.enable = true;
|
||||||
|
|
||||||
# Configure console keymap
|
# Configure console keymap
|
||||||
console.keyMap = "de";
|
console.keyMap = "de";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,4 +42,7 @@
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
|
hardware.bluetooth.enable = true; # enables support for Bluetooth
|
||||||
|
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,39 +1,51 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
fingerprints = {
|
||||||
|
HDMI-2-2 = "00ffffffffffff0030aee06557394834311d0103803c22782eb9a5a356509f260e5054adcf00d1c08180818a9500b300714f01010101023a801871382d40582c450056502100001e2a4480a0703827403020350056502100001a000000fd00314c365a15000a202020202020000000fc004c454e204c3237692d32380a20015f020327f14b010203040514111213101f230907078301000065030c001000681a00000101304c00011d007251d01e206e28550056502100001e8c0ad08a20e02d10103e96005650210000188c0ad090204031200c40550056502100001800000000000000000000000000000000000000000000000000000000000000000000f8";
|
||||||
|
eDP-1 = "00ffffffffffff004c83414100000000131d0104b5221378029491ae513eb7240b505400000001010101010101010101010101010101f0d40040f17018803020440058c21000001bf0d40040f17018803020440058c21000001b0000000f00ff093cff093c2c800000000000000000fe0041544e413536575230382d3020011502030f00e3058000e6060501736d0700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ab";
|
||||||
|
eDP-2 = "00ffffffffffff004c83414100000000131d0104b5221378029491ae513eb7240b505400000001010101010101010101010101010101f0d40040f17018803020440058c21000001bf0d40040f17018803020440058c21000001b0000000f00ff093cff093c2c800000000000000000fe0041544e413536575230382d3020011502030f00e3058000e6060501736d0700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ab";
|
||||||
|
};
|
||||||
|
monitorconf = {
|
||||||
|
enable = true;
|
||||||
|
primary = true;
|
||||||
|
position = "5760x0";
|
||||||
|
mode = "1920x1080";
|
||||||
|
#gamma = "1.0:0.909:0.833";
|
||||||
|
rate = "60.00";
|
||||||
|
scale = {
|
||||||
|
x = 1.0;
|
||||||
|
y = 1.0;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
internalconf = {
|
||||||
|
enable = true;
|
||||||
|
primary = false;
|
||||||
|
position = "0x0";
|
||||||
|
mode = "3840x2160";
|
||||||
|
#gamma = "1.0:0.909:0.833";
|
||||||
|
rate = "60.00";
|
||||||
|
scale = {
|
||||||
|
x = 0.5;
|
||||||
|
y = 0.5;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
{
|
{
|
||||||
programs.autorandr = {
|
programs.autorandr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
profiles = {
|
profiles = {
|
||||||
"docked" = {
|
"docked1" = {
|
||||||
fingerprint = {
|
fingerprint = fingerprints;
|
||||||
HDMI-2-2 = "00ffffffffffff0030aee06557394834311d0103803c22782eb9a5a356509f260e5054adcf00d1c08180818a9500b300714f01010101023a801871382d40582c450056502100001e2a4480a0703827403020350056502100001a000000fd00314c365a15000a202020202020000000fc004c454e204c3237692d32380a20015f020327f14b010203040514111213101f230907078301000065030c001000681a00000101304c00011d007251d01e206e28550056502100001e8c0ad08a20e02d10103e96005650210000188c0ad090204031200c40550056502100001800000000000000000000000000000000000000000000000000000000000000000000f8";
|
|
||||||
|
|
||||||
eDP-1 = "00ffffffffffff004c83414100000000131d0104b5221378029491ae513eb7240b505400000001010101010101010101010101010101f0d40040f17018803020440058c21000001bf0d40040f17018803020440058c21000001b0000000f00ff093cff093c2c800000000000000000fe0041544e413536575230382d3020011502030f00e3058000e6060501736d0700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ab";
|
|
||||||
};
|
|
||||||
config = {
|
config = {
|
||||||
HDMI-2-2 = {
|
HDMI-2-2 = monitorconf;
|
||||||
enable = true;
|
eDP-1 = internalconf;
|
||||||
primary = true;
|
};
|
||||||
position = "5760x0";
|
};
|
||||||
mode = "1920x1080";
|
"docked2" = {
|
||||||
#gamma = "1.0:0.909:0.833";
|
fingerprint = fingerprints;
|
||||||
rate = "60.00";
|
config = {
|
||||||
scale = {
|
HDMI-2-2 = monitorconf;
|
||||||
x = 1.0;
|
eDP-2 = internalconf;
|
||||||
y = 1.0;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
eDP-1 = {
|
|
||||||
enable = true;
|
|
||||||
primary = false;
|
|
||||||
position = "0x0";
|
|
||||||
mode = "3840x2160";
|
|
||||||
#gamma = "1.0:0.909:0.833";
|
|
||||||
rate = "60.00";
|
|
||||||
scale = {
|
|
||||||
x = 0.5;
|
|
||||||
y = 0.5;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,11 @@ in
|
||||||
always = true;
|
always = true;
|
||||||
notification = false;
|
notification = false;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
command = "blueman-applet";
|
||||||
|
always = true;
|
||||||
|
notification = false;
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue