NixOS and Home Manager config

feat: bluetooth

nel.pet 8d2a2885 292bca30

verified
Changed files
+14
modules
nixos
systems
nel-desktop
+12
modules/nixos/system/bluetooth.nix
···
+
{ lib, pkgs, config, ... }: let
+
cfg = config.cyclamen.system.bluetooth;
+
in {
+
options.cyclamen.system.bluetooth.enable = lib.mkEnableOption "bluetooth";
+
+
config = lib.mkIf cfg.enable {
+
hardware.bluetooth.enable = true;
+
+
# add bluetui as a minimal fallback for DEs/WMs that don't have a GUI bluetooth manager
+
environment.systemPackages = [ pkgs.bluetui ];
+
};
+
}
+1
modules/nixos/system/default.nix
···
{
imports = [
+
./bluetooth.nix
./boot
./lannas.nix
./printing.nix
+1
systems/nel-desktop/configuration.nix
···
loader = "systemd-boot";
};
+
bluetooth.enable = true;
lannas.enable = "all";
printing.enable = true;
};