configure nm-applet and blueman via home-manager
This commit is contained in:
parent
853b8fa050
commit
43b0973d19
|
@ -164,9 +164,5 @@ in
|
|||
};
|
||||
|
||||
};
|
||||
|
||||
# Enable blueman-applet when the machine has bluetooth enabled
|
||||
services.blueman-applet.enable = config.hardware.bluetooth.enable == true;
|
||||
|
||||
};
|
||||
}
|
||||
|
|
5
home-manager/modules/blueman-applet.nix
Normal file
5
home-manager/modules/blueman-applet.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ nixosConfig, ... }:
|
||||
{
|
||||
# Enable blueman-applet when the machine has bluetooth enabled
|
||||
services.blueman-applet.enable = nixosConfig.services.blueman.enable == true;
|
||||
}
|
5
home-manager/modules/nm-applet.nix
Normal file
5
home-manager/modules/nm-applet.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ nixosConfig, ... }:
|
||||
{
|
||||
# Enable nm-applet when the machine has networkmanager enabled
|
||||
services.network-manager-applet.enable = nixosConfig.networking.networkmanager.enable == true;
|
||||
}
|
|
@ -1,3 +1,4 @@
|
|||
{
|
||||
hardware.bluetooth.enable = true;
|
||||
services.blueman.enable = true;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
# Laptops need NetworkManger
|
||||
networking.networkmanager.enable = true;
|
||||
programs.nm-applet.enable = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue