Major config overhaul: use custom modules, setup for multi-host config, and less boilerplate
This commit is contained in:
20
modules/user/bluetooth/default.nix
Normal file
20
modules/user/bluetooth/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.userSettings.bluetooth;
|
||||
in {
|
||||
options = {
|
||||
userSettings.bluetooth = {
|
||||
enable = lib.mkEnableOption "Enable bluetooth";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
blueman
|
||||
];
|
||||
services = {
|
||||
blueman-applet.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user