mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
modules: Move bluetooth, sound and wlan modules into the services namespace
This commit is contained in:
parent
e914990eaf
commit
b82eeb8595
5 changed files with 10 additions and 12 deletions
|
|
@ -20,11 +20,10 @@
|
||||||
};
|
};
|
||||||
de.hyprland.enable = true;
|
de.hyprland.enable = true;
|
||||||
|
|
||||||
sound.enable = true;
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
resolved.enable = true;
|
resolved.enable = true;
|
||||||
gc.enable = true;
|
gc.enable = true;
|
||||||
|
sound.enable = true;
|
||||||
geoclue.enable = true;
|
geoclue.enable = true;
|
||||||
tailscale = {
|
tailscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -20,13 +20,12 @@
|
||||||
};
|
};
|
||||||
de.hyprland.enable = true;
|
de.hyprland.enable = true;
|
||||||
|
|
||||||
wifi.enable = true;
|
|
||||||
bluetooth.enable = true;
|
|
||||||
sound.enable = true;
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
resolved.enable = true;
|
resolved.enable = true;
|
||||||
gc.enable = true;
|
gc.enable = true;
|
||||||
|
wlan.enable = true;
|
||||||
|
bluetooth.enable = true;
|
||||||
|
sound.enable = true;
|
||||||
geoclue.enable = true;
|
geoclue.enable = true;
|
||||||
tailscale = {
|
tailscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
{
|
{
|
||||||
options.custom.bluetooth.enable = lib.mkEnableOption "";
|
options.custom.services.bluetooth.enable = lib.mkEnableOption "";
|
||||||
|
|
||||||
config = lib.mkIf config.custom.bluetooth.enable {
|
config = lib.mkIf config.custom.services.bluetooth.enable {
|
||||||
hardware = {
|
hardware = {
|
||||||
bluetooth = {
|
bluetooth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
{
|
{
|
||||||
options.custom.sound.enable = lib.mkEnableOption "";
|
options.custom.services.sound.enable = lib.mkEnableOption "";
|
||||||
|
|
||||||
config = lib.mkIf config.custom.sound.enable {
|
config = lib.mkIf config.custom.services.sound.enable {
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -5,10 +5,10 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.custom.wifi;
|
cfg = config.custom.services.wlan;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.custom.wifi = {
|
options.custom.services.wlan = {
|
||||||
enable = lib.mkEnableOption "";
|
enable = lib.mkEnableOption "";
|
||||||
networks = lib.mkOption {
|
networks = lib.mkOption {
|
||||||
type = lib.types.listOf lib.types.nonEmptyStr;
|
type = lib.types.listOf lib.types.nonEmptyStr;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue