Added bluetooth

This commit is contained in:
Serĉanto de Scio 2020-01-06 10:45:20 +10:00
parent b426131d68
commit d7af60e18c
Signed by: sercanto
GPG key ID: A4122FF3971B6865

View file

@ -23,6 +23,7 @@
elisa # Elisa music player elisa # Elisa music player
firefoxWrapper # install Firefox with support for plugins firefoxWrapper # install Firefox with support for plugins
libreoffice-fresh libreoffice-fresh
mplayer # A movie player that supports many video formats
plasma-workspace-wallpapers plasma-workspace-wallpapers
user-manager user-manager
nextcloud-client # Nextcloud desktop client nextcloud-client # Nextcloud desktop client
@ -35,6 +36,7 @@
# Enable common desktop services # Enable common desktop services
services.acpid.enable = true; services.acpid.enable = true;
services.blueman.enable = true;
powerManagement.enable = true; powerManagement.enable = true;
services.xserver.enable = true; services.xserver.enable = true;
@ -43,15 +45,24 @@
services.xserver.desktopManager.plasma5.enable = true; # Enable KDE services.xserver.desktopManager.plasma5.enable = true; # Enable KDE
sound.enable = true; # Enable sound. sound.enable = true; # Enable sound.
hardware.pulseaudio = { hardware = {
enable = true; pulseaudio = {
package = pkgs.pulseaudioFull; enable = true;
extraModules = [ pkgs.pulseaudio-modules-bt ];
package = pkgs.pulseaudioFull;
};
bluetooth = {
enable = true; # Enable bluetooth
extraConfig = "
[General]
Enable=Source,Sink,Media,Socket
[Policy]
AutoEnable=true
";
};
opengl.enable = true;
}; };
hardware.bluetooth.enable = true; # Enable bluetooth
hardware.bluetooth.extraConfig = "
[General]
Enable=Source,Sink,Media,Socket
";
# Configure Firefox and Chromium # Configure Firefox and Chromium
nixpkgs.config = { nixpkgs.config = {
@ -72,4 +83,29 @@
}; };
}; };
# Groups to add
users.groups = {
audio.members = [
"craige"
"fiona"
"hamish"
"logan"
"xander"
];
libvirtd.members = [
"craige"
"fiona"
"hamish"
"logan"
"xander"
];
networkmanager.members = [
"craige"
"fiona"
"hamish"
"logan"
"xander"
];
};
} }