Rework common profile into module system
This commit is contained in:
parent
9d2e54547c
commit
9fdec35027
29 changed files with 288 additions and 214 deletions
21
modules/bluetooth.nix
Normal file
21
modules/bluetooth.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
options.chvp.bluetooth.enable = lib.mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.chvp.bluetooth.enable {
|
||||
chvp.zfs.systemLinks = [{ path = "/var/lib/bluetooth"; type = "cache"; }];
|
||||
|
||||
hardware.bluetooth.enable = true;
|
||||
services.blueman.enable = true;
|
||||
hardware.pulseaudio.extraModules = [ pkgs.pulseaudio-modules-bt ];
|
||||
hardware.pulseaudio.package = pkgs.pulseaudioFull;
|
||||
|
||||
home-manager.users.charlotte = lib.mkIf config.chvp.bluetooth.enable ({ ... }: {
|
||||
services.blueman-applet.enable = true;
|
||||
});
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue