Move bluetooth to an option
This commit is contained in:
parent
f2c8234a58
commit
e85690e030
|
@ -1,19 +1,26 @@
|
||||||
{ ... }:
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.hardware.az_bluetooth;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
# Blueooth support in general
|
options = {
|
||||||
hardware.bluetooth = {
|
hardware.az_bluetooth.enable = lib.mkEnableOption "Enable Bluetooth";
|
||||||
enable = true;
|
|
||||||
powerOnBoot = false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Blueman applet
|
config = lib.mkIf cfg.enable {
|
||||||
services.blueman.enable = true;
|
# Blueooth support in general
|
||||||
|
hardware.bluetooth = {
|
||||||
|
enable = true;
|
||||||
|
powerOnBoot = false;
|
||||||
|
};
|
||||||
|
|
||||||
systemd.user.services.blueman-applet = {
|
# Blueman applet
|
||||||
partOf = [ "graphical-session.target" ];
|
services.blueman.enable = true;
|
||||||
wantedBy = [ "graphical-session.target" ];
|
|
||||||
|
systemd.user.services.blueman-applet = {
|
||||||
|
partOf = [ "graphical-session.target" ];
|
||||||
|
wantedBy = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./bluetooth
|
||||||
./dvd
|
./dvd
|
||||||
./nvidia
|
./nvidia
|
||||||
];
|
];
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
custom.inputs.nixos-hardware.nixosModules.dell-precision-5530
|
custom.inputs.nixos-hardware.nixosModules.dell-precision-5530
|
||||||
custom.inputs.nixos-hardware.nixosModules.common-gpu-nvidia
|
custom.inputs.nixos-hardware.nixosModules.common-gpu-nvidia
|
||||||
custom.inputs.nixos-hardware.nixosModules.common-gpu-intel
|
custom.inputs.nixos-hardware.nixosModules.common-gpu-intel
|
||||||
"${custom.inputs.self}/hardware/bluetooth"
|
|
||||||
(import "${custom.inputs.self}/modules/desktop" { inherit custom; })
|
(import "${custom.inputs.self}/modules/desktop" { inherit custom; })
|
||||||
"${custom.inputs.self}/modules/logs-share"
|
"${custom.inputs.self}/modules/logs-share"
|
||||||
(import "${custom.inputs.self}/modules/restic-client-desktop" { inherit custom; })
|
(import "${custom.inputs.self}/modules/restic-client-desktop" { inherit custom; })
|
||||||
|
@ -50,6 +49,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
|
az_bluetooth.enable = true;
|
||||||
az_nvidia.enable = true;
|
az_nvidia.enable = true;
|
||||||
dvd.enable = true;
|
dvd.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
custom.inputs.nixos-hardware.nixosModules.common-gpu-intel
|
custom.inputs.nixos-hardware.nixosModules.common-gpu-intel
|
||||||
custom.inputs.nixos-hardware.nixosModules.common-pc-laptop
|
custom.inputs.nixos-hardware.nixosModules.common-pc-laptop
|
||||||
custom.inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
|
custom.inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
|
||||||
"${custom.inputs.self}/hardware/bluetooth"
|
|
||||||
(import "${custom.inputs.self}/modules/desktop" { inherit custom; })
|
(import "${custom.inputs.self}/modules/desktop" { inherit custom; })
|
||||||
(import "${custom.inputs.self}/modules/docker" { inherit custom; })
|
(import "${custom.inputs.self}/modules/docker" { inherit custom; })
|
||||||
(import "${custom.inputs.self}/modules/restic-client-desktop" { inherit custom; })
|
(import "${custom.inputs.self}/modules/restic-client-desktop" { inherit custom; })
|
||||||
|
@ -43,6 +42,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
|
az_bluetooth.enable = true;
|
||||||
dvd.enable = true;
|
dvd.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user